AttributeError: 'SQLAlchemy' object has no attribute 'mode

解决方法:

model starts with capital M

class User(db.Model)

原文地址:https://www.cnblogs.com/free-1124/p/12337425.html