1 |
commit: c9b3f8148df243dd30497afcba8aefbdd24a9400 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 9 14:14:30 2020 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 9 23:16:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/euscan.git/commit/?id=c9b3f814 |
7 |
|
8 |
euscanwww: Support loading oad Django SECRET_KEY from environment |
9 |
|
10 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
11 |
|
12 |
euscanwww/euscanwww/settings.py | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/euscanwww/euscanwww/settings.py b/euscanwww/euscanwww/settings.py |
16 |
index 4ee020b..7523da3 100644 |
17 |
--- a/euscanwww/euscanwww/settings.py |
18 |
+++ b/euscanwww/euscanwww/settings.py |
19 |
@@ -115,7 +115,7 @@ STATICFILES_FINDERS = ( |
20 |
) |
21 |
|
22 |
# Make this unique, and don't share it with anybody. |
23 |
-SECRET_KEY = '' |
24 |
+SECRET_KEY = os.environ.get('EUSCAN_SECRET_KEY', '') |
25 |
|
26 |
# List of callables that know how to import templates from various sources. |
27 |
TEMPLATE_LOADERS = ( |