Browse Source

Auto-generate a secret key for development mode.

ansible-setup-and-deploy
Luke Murphy 6 years ago
parent
commit
21d94dc626
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 5
      xppl/config.py

5
xppl/config.py

@ -1,5 +1,6 @@
"""The Application settings."""
from os import environ, urandom
from os.path import abspath, dirname, isdir, join
@ -30,3 +31,7 @@ class Development(Base):
DEBUG = True
TESTING = True
DOMAIN = 'http://localhost'
SECRET_KEY = environ.get(
'XPPL_SECRET_KEY',
urandom(24).hex()
)

Loading…
Cancel
Save