Browse Source

Merge pull request #897 from d3spis3d/master

URL Reversing in Quickstart Doc #779
pull/880/merge
Armin Ronacher 11 years ago
parent
commit
ba36d57729
  1. 5
      docs/quickstart.rst

5
docs/quickstart.rst

@ -236,8 +236,9 @@ below. It tells Flask to behave as though it is handling a request, even
though we are interacting with it through a Python shell. Have a look at the though we are interacting with it through a Python shell. Have a look at the
explanation below. :ref:`context-locals`). explanation below. :ref:`context-locals`).
Why would you want to build URLs instead of hard-coding them into your Why would you want to build URLs using the URL reversing function :func:`~flask.url_for`
templates? There are three good reasons for this: instead of hard-coding them into your templates? There are three good reasons
for this:
1. Reversing is often more descriptive than hard-coding the URLs. More 1. Reversing is often more descriptive than hard-coding the URLs. More
importantly, it allows you to change URLs in one go, without having to importantly, it allows you to change URLs in one go, without having to

Loading…
Cancel
Save