This commit is contained in:
2026-08-25 19:02:52 +08:00
parent c65cc92386
commit 7ef8723c6b
2 changed files with 23 additions and 12 deletions

View File

@@ -11,7 +11,6 @@ https://docs.djangoproject.com/en/5.2/ref/settings/
"""
from pathlib import Path
import os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -21,14 +20,14 @@ DATA_DIR = BASE_DIR / 'data'
# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get(
'DJANGO_SECRET_KEY',
'django-insecure-g224%sp()h))26kj26pnnfoayu-knah+!)h9uzgqeece&6*clp'
)
# 生产环境请在 local_settings.py 中覆盖
SECRET_KEY = 'django-insecure-g224%sp()h))26kj26pnnfoayu-knah+!)h9uzgqeece&6*clp'
# SECURITY WARNING: don't run with debug turned on in production!
# 生产环境请在 local_settings.py 中设置为 False
DEBUG = True
# 生产环境请在 local_settings.py 中配置
ALLOWED_HOSTS = []
# Application definition