diff options
author | 2020-02-09 15:14:30 +0100 | |
---|---|---|
committer | 2020-02-10 00:16:35 +0100 | |
commit | c9b3f8148df243dd30497afcba8aefbdd24a9400 (patch) | |
tree | 646d9a59d1c4df03504200a19716a05351673825 | |
parent | settings: Set ALLOWED_HOSTS default to satisfy DEBUG=False (diff) | |
download | euscan-c9b3f8148df243dd30497afcba8aefbdd24a9400.tar.gz euscan-c9b3f8148df243dd30497afcba8aefbdd24a9400.tar.bz2 euscan-c9b3f8148df243dd30497afcba8aefbdd24a9400.zip |
euscanwww: Support loading oad Django SECRET_KEY from environment
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
-rw-r--r-- | euscanwww/euscanwww/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/euscanwww/euscanwww/settings.py b/euscanwww/euscanwww/settings.py index 4ee020b..7523da3 100644 --- a/euscanwww/euscanwww/settings.py +++ b/euscanwww/euscanwww/settings.py @@ -115,7 +115,7 @@ STATICFILES_FINDERS = ( ) # Make this unique, and don't share it with anybody. -SECRET_KEY = '' +SECRET_KEY = os.environ.get('EUSCAN_SECRET_KEY', '') # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( |