From 0431c0ab09edd9f16389fb44a9a48e392eb73fb9 Mon Sep 17 00:00:00 2001 From: luabud Date: Mon, 17 Jan 2022 16:57:05 -0800 Subject: [PATCH] Add placeholder --- web_project/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web_project/settings.py b/web_project/settings.py index 7d8bc50..1bb0577 100644 --- a/web_project/settings.py +++ b/web_project/settings.py @@ -11,6 +11,7 @@ """ from pathlib import Path +import os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -19,7 +20,10 @@ # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = '6cskd7@vosz+^h5org$_jjq)l$ai-05q8-g^^$tdb$x*ud7e0=' +# The SECRET_KEY is created automatically when you run the startproject command. +# You can store it by creating a file called ".env" in your workspace, +# and adding SECRET_KEY='$generated_secret_key'. +SECRET_KEY = os.environ.get("SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True