From: Frédéric Péters Date: Sun, 29 Dec 2019 13:12:46 +0000 (+0100) Subject: settings: do not include a default secret key X-Git-Tag: v2022~60 X-Git-Url: https://git.0d.be/?p=chloro.git;a=commitdiff_plain;h=38ee72790ccee73d98bb6789930c4e067557e3dd settings: do not include a default secret key --- diff --git a/chloro/settings.py b/chloro/settings.py index fa1b1be..b29168d 100644 --- a/chloro/settings.py +++ b/chloro/settings.py @@ -20,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'cv)5m&o$$hwhl-a79_vyhs#04mq_p*p-xvyvoau%(6wef_by!y' +SECRET_KEY = '' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True @@ -112,3 +112,5 @@ local_settings_file = os.environ.get( ) if os.path.exists(local_settings_file): exec(open(local_settings_file).read()) + +assert SECRET_KEY