flask.has_app_context

flask.has_app_context()[source]

Works like has_request_context() but for the application context. You can also just do a boolean check on the current_app object instead.

New in version 0.9.