first commit
This commit is contained in:
22
config/development.py
Normal file
22
config/development.py
Normal 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 = ['*']
|
||||
|
||||
Reference in New Issue
Block a user