From f1bfaf024267d7835422babe39aa1b1160440635 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 29 Oct 2018 18:23:43 -0400 Subject: [PATCH] settings: split SECRET_FILE from SECRET_KEY --- etesync_server/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etesync_server/settings.py b/etesync_server/settings.py index 521cb2f..9d5f119 100644 --- a/etesync_server/settings.py +++ b/etesync_server/settings.py @@ -23,7 +23,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in production secret! # See secret.py for how this is generated; uses a file 'secret.txt' in the root # directory -SECRET_KEY = get_secret_from_file(os.path.join(BASE_DIR, "secret.txt")) +SECRET_FILE = os.path.join(BASE_DIR, "secret.txt") +SECRET_KEY = get_secret_from_file(SECRET_FILE) # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False