Auto-generate a secret key for development mode.
This commit is contained in:
parent
0157faa8db
commit
21d94dc626
@ -1,5 +1,6 @@
|
|||||||
"""The Application settings."""
|
"""The Application settings."""
|
||||||
|
|
||||||
|
from os import environ, urandom
|
||||||
from os.path import abspath, dirname, isdir, join
|
from os.path import abspath, dirname, isdir, join
|
||||||
|
|
||||||
|
|
||||||
@ -30,3 +31,7 @@ class Development(Base):
|
|||||||
DEBUG = True
|
DEBUG = True
|
||||||
TESTING = True
|
TESTING = True
|
||||||
DOMAIN = 'http://localhost'
|
DOMAIN = 'http://localhost'
|
||||||
|
SECRET_KEY = environ.get(
|
||||||
|
'XPPL_SECRET_KEY',
|
||||||
|
urandom(24).hex()
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user