Auto-generate a secret key for development mode.

This commit is contained in:
Luke Murphy 2018-11-18 11:36:20 +01:00
parent 0157faa8db
commit 21d94dc626
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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()
)