RuntimeError: No application found. Either work inside a view function or push an application context.

记录:

  遇到这种报错信息:

    在create_all()生成数据表的时候,添加app=app,指明app对象即可-----> create_all(app=app)

原文地址:https://www.cnblogs.com/aidenzdly/p/11133316.html