ImportError: cannot import name ‘BaseQuery‘ from ‘flask_sqlalchemy‘

ImportError: cannot import name ‘BaseQuery’ from 'flask_sqlalchemy’报错

-报错的导入
from flask_sqlalchemy import SQLAlchemy as BaseQuery

现-成功的导入
from flask_sqlalchemy.query import Query as BaseQuery

你可能感兴趣的:(bug,flask,数据库,python)