Skip to content
Myr

Merge pull request #897 from d3spis3d/master

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

URL Reversing in Quickstart Doc #779

authored by Armin Ronacher · committed by Armin Ronacher · parents 23d9b33, 05dbf52 · Browse files · 1 file+3 added−2 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−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:docs/quickstart.rst+3 added-2 removed
234 unmodified lines
235below. It tells Flask to behave as though it is handling a request, even236though we are interacting with it through a Python shell. Have a look at the237explanation below. :ref:`context-locals`).238239Why would you want to build URLs instead of hard-coding them into your240templates? There are three good reasons for this:239Why would you want to build URLs using the URL reversing function :func:`~flask.url_for` 240instead of hard-coding them into your templates? There are three good reasons 241for this:2422431. Reversing is often more descriptive than hard-coding the URLs. More244 importantly, it allows you to change URLs in one go, without having to245 remember to change URLs all over the place.
608 unmodified lines