Python и Flask create_app

>>> from yourapp import create_app
>>> app = create_app()
>>> app.app_context().push()
Defeated Duck