Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 26 lines 961 B view raw
1diff --git a/etebase_server/settings.py b/etebase_server/settings.py 2index 9baf8d3..501d9f6 100644 3--- a/etebase_server/settings.py 4+++ b/etebase_server/settings.py 5@@ -23,11 +22,6 @@ 6 # Quick-start development settings - unsuitable for production 7 # See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ 8 9-# SECURITY WARNING: keep the secret key used in production secret! 10-# See secret.py for how this is generated; uses a file 'secret.txt' in the root 11-# directory 12-SECRET_FILE = os.path.join(BASE_DIR, "secret.txt") 13- 14 # SECURITY WARNING: don't run with debug turned on in production! 15 DEBUG = True 16 17@@ -143,7 +137,7 @@ 18 19 section = config["global"] 20 21- SECRET_FILE = section.get("secret_file", SECRET_FILE) 22+ SECRET_FILE = section.get("secret_file", None) 23 STATIC_ROOT = section.get("static_root", STATIC_ROOT) 24 STATIC_URL = section.get("static_url", STATIC_URL) 25 MEDIA_ROOT = section.get("media_root", MEDIA_ROOT) 26