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

Excel2016發表於2024-06-14

ImportError: cannot import name ‘BaseQuery’ from 'flask_sqlalchemy’報錯

原-報錯的匯入
from flask_sqlalchemy import SQLAlchemy as BaseQuery

現-成功的匯入
from flask_sqlalchemy.query import Query as BaseQuery

相關文章