From dcaa70147e6974d82e95db5eed1a531397ffc0fb Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Wed, 22 Oct 2025 16:46:29 +0800 Subject: [PATCH] feat: Add SECRET_KEY environment variable settings --- apps/maxkb/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/maxkb/settings/base.py b/apps/maxkb/settings/base.py index 4d884a72b49..780f1f32e37 100644 --- a/apps/maxkb/settings/base.py +++ b/apps/maxkb/settings/base.py @@ -22,7 +22,7 @@ # 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-zm^1_^i5)3gp^&0io6zg72&z!a*d=9kf9o2%uft+27l)+t(#3e' +SECRET_KEY = CONFIG.get("SECRET_KEY") or 'django-insecure-zm^1_^i5)3gp^&0io6zg72&z!a*d=9kf9o2%uft+27l)+t(#3e' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = CONFIG.get_debug()