From c27253f5fedc3ef1e0156fea6ca32787350e28a0 Mon Sep 17 00:00:00 2001 From: btwatts0 <157543333+btwatts0@users.noreply.github.com> Date: Wed, 1 Apr 2026 12:22:16 -0700 Subject: [PATCH] Replace hardcoded SECRET_KEY with environment variable --- django-site/campus_resource/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django-site/campus_resource/settings.py b/django-site/campus_resource/settings.py index 9031ec9..1f308c4 100644 --- a/django-site/campus_resource/settings.py +++ b/django-site/campus_resource/settings.py @@ -20,7 +20,8 @@ # See https://docs.djangoproject.com/en/6.0/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'django-insecure-#$w=3#0n89fx!2dlum-hhead3h7wsh6#6apse+0d!*x7!y=40_' +import os +SECRET_KEY = os.environ["SECRET_KEY"] # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True