AttributeError: type object 'SQLAlchemy' has no attribute 'Model'

运行flask项目时报错: AttributeError: type object ‘SQLAlchemy’ has no attribute ‘Model’ 解决方案: 由于生成连接数据库的对象时,sqlalchemy少写了括号,如下图:
相关文章
相关标签/搜索