flask app factory问题

一起都源于这个错误:

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

 

--end

 

 

你可能感兴趣的:(factory)