Skip to content

Commit 7a60654

Browse files
committed
fix: 增加配置项目,屏蔽sql alchemy的FSADeprecationWarning
1 parent ef86033 commit 7a60654

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

app/config/setting.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
# 令牌配置
1313
JWT_ACCESS_TOKEN_EXPIRES = timedelta(hours=1)
1414

15+
# 屏蔽 sql alchemy 的 FSADeprecationWarning
16+
SQLALCHEMY_TRACK_MODIFICATIONS = False
17+
1518
# 插件模块暂时没有开启,以下配置可忽略
1619
# plugin config写在字典里面
1720
PLUGIN_PATH = {
18-
'poem': {'path': 'app.plugins.poem', 'enable': True, 'version': '0.0.1', 'limit': 20},
19-
'oss': {'path': 'app.plugins.oss', 'enable': True, 'version': '0.0.1', 'access_key_id': 'not complete', 'access_key_secret': 'not complete', 'endpoint': 'http://oss-cn-shenzhen.aliyuncs.com', 'bucket_name': 'not complete', 'upload_folder': 'app', 'allowed_extensions': ['jpg', 'gif', 'png', 'bmp']}
21+
'oss': {'path': 'app.plugins.oss', 'enable': True, 'version': '0.0.1', 'access_key_id': 'not complete', 'access_key_secret': 'not complete', 'endpoint': 'http://oss-cn-shenzhen.aliyuncs.com', 'bucket_name': 'not complete', 'upload_folder': 'app', 'allowed_extensions': ['jpg', 'gif', 'png', 'bmp']},
22+
'poem': {'path': 'app.plugins.poem', 'enable': True, 'version': '0.0.1', 'limit': 20}
2023
}

0 commit comments

Comments
 (0)