Removed "\" from secret key generation, to avoid accidental escapes in key. Based on patch by user cam.turn in Issue 337.
This commit is contained in:
parent
9d79299d16
commit
2d206c5e68
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ if not os.path.exists('settings.py'):
|
||||||
|
|
||||||
# make random secret_key.
|
# make random secret_key.
|
||||||
import random, string
|
import random, string
|
||||||
secret_key = list((string.letters + string.digits + string.punctuation).replace("'",'"'))
|
secret_key = list((string.letters + string.digits + string.punctuation).replace("\\","").replace("'",'"'))
|
||||||
random.shuffle(secret_key)
|
random.shuffle(secret_key)
|
||||||
secret_key = "".join(secret_key[:40])
|
secret_key = "".join(secret_key[:40])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue