From 4a3f1d086b23caa27b9ea993d7178c8b33cb1ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Fri, 23 Dec 2016 23:39:02 +0100 Subject: [PATCH] .secret should be in DATA_DIR --- src/c3nav/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/settings.py b/src/c3nav/settings.py index d0ee5dd7..a152651d 100644 --- a/src/c3nav/settings.py +++ b/src/c3nav/settings.py @@ -35,7 +35,7 @@ if not os.path.exists(RENDER_ROOT): if config.has_option('django', 'secret'): SECRET_KEY = config.get('django', 'secret') else: - SECRET_FILE = os.path.join(BASE_DIR, '.secret') + SECRET_FILE = os.path.join(DATA_DIR, '.secret') if os.path.exists(SECRET_FILE): with open(SECRET_FILE, 'r') as f: SECRET_KEY = f.read().strip()