This commit is contained in:
ddrwode
2026-02-27 13:57:19 +08:00
parent 530d7fe135
commit 72d379add7

View File

@@ -10,7 +10,8 @@ from server.config import DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_NAME
# ─── 基础 ───
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = os.getenv("DJANGO_SECRET_KEY", "boss-dp-secret-key-change-in-production")
DEBUG = os.getenv("DJANGO_DEBUG", "True").lower() in ("true", "1", "yes")
# 调试模式:默认开启;生产环境可设置 DJANGO_DEBUG=0 关闭
DEBUG = os.getenv("DJANGO_DEBUG", "1").lower() in ("true", "1", "yes")
ALLOWED_HOSTS = ["*"]
# ─── 应用 ───