2015年7月7日 星期二

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

with app.app_context():
    db.create_all()




References :
python - When scattering Flask Models, RuntimeError: 'application not registered on db' was raised - Stack Overflow

沒有留言:

張貼留言