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

错误:
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 ' ....

解决:
在config.py中加上2行即可:

SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_COMMIT_TEARDOWN = True

你可能感兴趣的:(关于使用SQLALCHEMY 出现warning 的问题解决)