'Binds the application only.  For as long as the application is bound
to the current context the :data:`flask.current_app` points to that
application.  An application context is automatically created when a
request context is pushed if necessary.
Example usage::
with app.app_context():
.. versionadded:: 0.9'

def app_context(self):

    return AppContext(self)
