Skip to content
Myr

Merge pull request #607 from jfinkels/patch-3

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update docs/quickstart.rst

authored by Armin Ronacher · committed by Armin Ronacher · parents 62c0c67, 639817b · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/quickstart.rst+3 added-3 removed
625 unmodified lines
626627Redirects and Errors628--------------------629630To redirect a user to somewhere else you can use the631:func:`~flask.redirect` function. To abort a request early with an error632code use the :func:`~flask.abort` function. Here an example how this works::630To redirect a user to another endpoint, use the :func:`~flask.redirect`631function; to abort a request early with an error code, use the632:func:`~flask.abort` function::633634 from flask import abort, redirect, url_for635636 @app.route('/')
217 unmodified lines