TaleLin / lin-cms-flask

🎀A simple and practical CMS implememted by Flask
http://doc.cms.talelin.com/
Other
832 stars 216 forks source link

python add_super.py 'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and ' #35

Closed china-wangyu closed 5 years ago

china-wangyu commented 5 years ago

添加数据库用户脚本报错

在cmd执行命令 python add_super.py

(lin-cms-flask--LqTYnzq) C:\Users\wy\Desktop\lin-cms-flask>python add_super.py C:\Users\wy\.virtualenvs\lin-cms-flask--LqTYnzq\lib\site-packages\flask_sqlalchemy\__init__.py:794: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning. 'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '

我使用的最新的master版本,pip 扩展也是最新的 `(lin-cms-flask) C:\Users\wy\Desktop\lin-cms-flask>pipenv graph cymysql==0.9.1 Flask-Cors==2.1.0

如何再现

然后就报错了呀,真奇妙啊

colorful3 commented 5 years ago

你好,感谢你提交的issue。 这个不是报错而是sqlalchemy内部所抛出的警告,我们会优化这块的用户体验。