Returns the active app instance.
Returns: | A WSGIApplication instance. |
---|
Returns the active request instance.
Returns: | A Request instance. |
---|
A standalone uri_for version that can be passed to templates.
See also
Router.build().
Issues an HTTP redirect to the given relative URI.
This won’t stop code execution unless abort is True. A common practice is to return when calling this method:
return redirect('/some-path')
Parameters: |
|
---|---|
Returns: | A Response instance. |
Convenience function mixing redirect() and uri_for().
Issues an HTTP redirect to a named URI built using uri_for().
Parameters: |
|
---|---|
Returns: | A Response instance. |
The other arguments are described in redirect().