Update debug

This commit is contained in:
2026-03-21 21:14:16 +11:00
parent 2ff7ab85ed
commit 45e7289755
+2 -1
View File
@@ -57,7 +57,8 @@ TEMPLATES = [
# 添加以下基本设置(如果尚未存在)
SECRET_KEY = 'your-secret-key-here' # 请更改为一个安全的随机值
DEBUG = True
DEBUG = os.environ.get('DEBUG', 'True').lower() in ('true', '1', 'yes')
ALLOWED_HOSTS = ['*']
# 数据库设置(使用默认的SQLite配置)