isch hab comitted
This commit is contained in:
parent
48e8c3e97a
commit
0efd7e11ea
12
firstrun.py
12
firstrun.py
|
|
@ -4,14 +4,16 @@ from users.models import Profile,Agency
|
|||
import random
|
||||
import string
|
||||
|
||||
def randomStringwithDigitsAndSymbols(stringLength=10):
|
||||
"""Generate a random string of letters, digits and special characters """
|
||||
|
||||
password_characters = string.ascii_letters + string.digits + string.punctuation
|
||||
return ''.join(random.choice(password_characters) for i in range(stringLength))
|
||||
|
||||
username = "root"
|
||||
password = randomStringwithDigitsAndSymbols(20)
|
||||
password = ""
|
||||
|
||||
i = 0
|
||||
while(i < 20):
|
||||
password += random.choice(password_characters)
|
||||
i++
|
||||
|
||||
print("USERNAME: " + username)
|
||||
print("PASSWORD: " + password)
|
||||
ag=Agency()
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue