修复了一些可能影响生产的问题

This commit is contained in:
2026-06-14 23:08:44 +08:00
parent 21bb129c5d
commit a155dc9f33
43 changed files with 66 additions and 210 deletions

View File

@@ -3,14 +3,13 @@ Django settings for a_long_dianjing project.
"""
from pathlib import Path
from datetime import timedelta
import os
# 从密钥配置文件导入敏感信息
try:
import app_secrets
except ImportError:
raise ImportError("缺少 appapp_secrets.py 密钥配置文件,请参照项目说明创建")
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = app_secrets.SECRET_KEY