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