Kaydet (Commit) 731f313d authored tarafından Rikki's avatar Rikki Kaydeden (comit) Tim Graham

Added warning in tutorial 4 that the regex capture group name has changed.

üst 06ba4b9e
......@@ -233,6 +233,9 @@ First, open the ``polls/urls.py`` URLconf and change it like so:
url(r'^(?P<question_id>[0-9]+)/vote/$', views.vote, name='vote'),
]
Note that the name of the matched pattern in the regexes of the second and third
patterns has changed from ``<question_id>`` to ``<pk>``.
.. _tutorial04-amend-views:
Amend views
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment