Flask-SQLAlchemy 错误

一切都源于这个错误:

RuntimeError: application not registered on db instance and no application bound to current context

下面两篇文章记录下来:

http://piotr.banaszkiewicz.org/blog/2012/06/29/flask-sqlalchemy-init_app/

http://flask.pocoo.org/mailinglist/archive/2010/8/30/sqlalchemy-init-app-problem/#122292aa9f7c2cdf98638b4a0dbd9159

你可能感兴趣的:(Flask-SQLAlchemy 错误)