关于使用SQLALCHEMY 出现warning 的问题解决

出现错误:D:Python27libsite-packagesflask_sqlalchemy__init__.py:794: FSADeprecationWarning: SQLALCHEMY_TRACK_

出现错误:

D:\Python27\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.  
  1.   'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and ' 

解决方案:

配置文件增加以下内容:(config.py)

   SQLALCHEMY_TRACK_MODIFICATIONS = True
   SQLALCHEMY_COMMIT_TEARDOWN = True

发布者:admin,转转请注明出处:http://www.yc00.com/web/1754940395a5218045.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信