当前位置:网站首页>报错:FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disab

报错:FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disab

2022-08-09 06:22:00 考拉盖饭

报错:'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. warnings.warn(FSADeprecationWarning('

**解决方法:
在配置类(Config)中添加一下两行代码:

  SQLALCHEMY_TRACK_MODIFICATIONS = True
  SQLALCHEMY_COMMIT_TEARDOWN = True**

看图:
在这里插入图片描述

原网站

版权声明
本文为[考拉盖饭]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45425667/article/details/115485993