fix: update SECRET_KEY to use environment variable instead of hardcoded value

This commit is contained in:
2026-05-26 09:44:53 +02:00
parent e4fa941fd6
commit 37383b0736
+1 -1
View File
@@ -78,7 +78,7 @@ load_dotenv(BASE_DIR / '.env')
# See https://docs.djangoproject.com/en/6.0/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/6.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.getenv('SECRET_KEY', 'django-insecure-#g((q@lvnkt(j6)2(gvtn0px)r2r(911)pv59i(6w)5e!_-^ao') SECRET_KEY = os.getenv('SECRET_KEY', '')
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env_bool('DEBUG', True) DEBUG = env_bool('DEBUG', True)