把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)