当前位置:网站首页>报错:FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS重大开销和将disab补充道

报错:FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS重大开销和将disab补充道

2022-08-09 06:27:00 The koala over rice

报错:'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('

**Solution:
Add the following two lines of code to the configuration class (Config):

 SQLALCHEMY_TRACK_MODIFICATIONS = TrueSQLALCHEMY_COMMIT_TEARDOWN = True**

See image:
insert image description here

原网站

版权声明
本文为[The koala over rice]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/221/202208090622259169.html