把sql-alchemy在init.py里的SQLALCHEMY_TRACK_MODIFICATIONS,797行左右改为True就行了
app = Flask(__name__) app.config.from_object(‘config‘)app.config.setdefault(‘SQLALCHEMY_TRACK_MODIFICATIONS‘, True)db = SQLAlchemy(app) lm = LoginManager() lm.init_app(app)
本文出自 “cwy” 博客,请务必保留此出处http://wplus.blog.51cto.com/1312034/1782074
flask web开发 Set it to True to suppress this warning问题
原文地址:http://wplus.blog.51cto.com/1312034/1782074