first commit

This commit is contained in:
rjb
2025-12-21 00:20:27 +08:00
commit 6fb3c6c23d
42 changed files with 2265 additions and 0 deletions

22
config/development.py Normal file
View File

@@ -0,0 +1,22 @@
"""
开发环境配置
"""
from .base import Config
class DevelopmentConfig(Config):
"""
开发环境配置
启用调试模式,使用开发数据库
"""
DEBUG = True
TESTING = False
# 开发环境可以使用SQLite
SQLALCHEMY_DATABASE_URI = Config.SQLALCHEMY_DATABASE_URI or 'sqlite:///dev.db'
# 开发环境日志级别
LOG_LEVEL = 'DEBUG'
# 开发环境允许所有跨域请求
CORS_ORIGINS = ['*']