RuntimeError: No application found. Either work inside a view function or push an application context Flask flyf35 — 8 April 2023 · Comments off Solution from myapp import create_app, db app = create_app() with app.app_context(): db.create_all()