use os.environ.get
Browse files- backend/settings.py +1 -1
backend/settings.py
CHANGED
|
@@ -25,7 +25,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|
| 25 |
# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
|
| 26 |
|
| 27 |
# SECURITY WARNING: keep the secret key used in production secret!
|
| 28 |
-
SECRET_KEY = os.environ
|
| 29 |
|
| 30 |
# SECURITY WARNING: don't run with debug turned on in production!
|
| 31 |
DEBUG = os.environ.get("DEBUG", "True") == "True"
|
|
|
|
| 25 |
# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
|
| 26 |
|
| 27 |
# SECURITY WARNING: keep the secret key used in production secret!
|
| 28 |
+
SECRET_KEY = os.environ.get("SECRET_KEY", "local-dev-secret")
|
| 29 |
|
| 30 |
# SECURITY WARNING: don't run with debug turned on in production!
|
| 31 |
DEBUG = os.environ.get("DEBUG", "True") == "True"
|