feat: Add SECRET_KEY environment variable settings (#4235)

This commit is contained in:
shaohuzhang1 2025-10-22 16:51:02 +08:00 committed by GitHub
parent 92e8a9105f
commit 173994e65a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,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-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()