diff --git a/mysite/settings.py b/mysite/settings.py index 5834374..e23d57e 100644 --- a/mysite/settings.py +++ b/mysite/settings.py @@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/4.2/ref/settings/ """ from pathlib import Path +from decouple import config # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -20,7 +21,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'django-insecure-ij$9jv9o30j(51=l)ho^l+x&q9)n77i1vt%j()%9=(ohh(b*!^' +SECRET_KEY = config('SECRET_KEY', default='fake-secret-key') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True