haha
This commit is contained in:
@@ -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 = ["*"]
|
||||
|
||||
# ─── 应用 ───
|
||||
|
||||
Reference in New Issue
Block a user