Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / etebase / secret.patch
blob182d3259248ee52f73b0e102367c34748d3796c9
1 diff --git a/etebase_server/settings.py b/etebase_server/settings.py
2 index 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/
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")
14 # SECURITY WARNING: don't run with debug turned on in production!
15 DEBUG = True
17 @@ -143,7 +137,7 @@
19 section = config["global"]
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)