forked from orbit-oss/flask
Update docs/quickstart.rst
Removed incorrect syntax and simplified remaining sentence.
This commit is contained in:
parent
3b9fe7c486
commit
639817b621
1 changed files with 3 additions and 3 deletions
|
|
@ -627,9 +627,9 @@ For this also see :ref:`about-responses`.
|
|||
Redirects and Errors
|
||||
--------------------
|
||||
|
||||
To redirect a user to somewhere else you can use the
|
||||
:func:`~flask.redirect` function. To abort a request early with an error
|
||||
code use the :func:`~flask.abort` function. Here an example how this works::
|
||||
To redirect a user to another endpoint, use the :func:`~flask.redirect`
|
||||
function; to abort a request early with an error code, use the
|
||||
:func:`~flask.abort` function::
|
||||
|
||||
from flask import abort, redirect, url_for
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue