Browse Source
Auto-generate a secret key for development mode.
ansible-setup-and-deploy
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
5 additions and
0 deletions
-
xppl/config.py
|
@ -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() |
|
|
|
|
|
) |
|
|