Browse Source

Merge pull request #1861 from ryanbackman/master

Document Runtime Error when running outside of application context
pull/1865/head
Jeff Widman 9 years ago
parent
commit
808d2cf75e
  1. 5
      docs/appcontext.rst

5
docs/appcontext.rst

@ -74,6 +74,11 @@ The application context is also used by the :func:`~flask.url_for`
function in case a ``SERVER_NAME`` was configured. This allows you to
generate URLs even in the absence of a request.
If a request context has not been pushed and an application context has
not been explicitly set, a ``RuntimeError`` will be raised.
::
RuntimeError: Working outside of application context.
Locality of the Context
-----------------------

Loading…
Cancel
Save