Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/euscan:docker-compose--wip--expect-force-pushes commit in: euscanwww/euscanwww/
Date: Sun, 09 Feb 2020 23:16:51
Message-Id: 1581290195.c9b3f8148df243dd30497afcba8aefbdd24a9400.sping@gentoo
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 = (