Flask app is not registered with this 'SQLAlchemy' instance.

报错内容 "The current Flask app is not registered with this 'SQLAlchemy' instance. Did you forget to call 'init_app', or did you create multiple 'SQLAlchemy' instances?"

成因
models里面出现了两个
db = SQLAlchemy()

posted @ 2025-03-23 05:18  天长tianchang  阅读(49)  评论(0)    收藏  举报