Fixed #9944 -- Fixed a URL in tutorial four that was changed in the "Decoupling the URLconfs" section at the end of tutorial three, patch from programmerq.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1e214534e7
commit
27314a8934
|
@ -47,10 +47,10 @@ A quick rundown:
|
||||||
through its loop
|
through its loop
|
||||||
|
|
||||||
Now, let's create a Django view that handles the submitted data and does
|
Now, let's create a Django view that handles the submitted data and does
|
||||||
something with it. Remember, in :ref:`Tutorial 3 <intro-tutorial03>`, we created
|
something with it. Remember, in :ref:`Tutorial 3 <intro-tutorial03>`, we
|
||||||
a URLconf for the polls application that includes this line::
|
created a URLconf for the polls application that includes this line::
|
||||||
|
|
||||||
(r'^(?P<poll_id>\d+)/vote/$', 'mysite.polls.views.vote'),
|
(r'^(?P<poll_id>\d+)/vote/$', 'vote'),
|
||||||
|
|
||||||
So let's create a ``vote()`` function in ``mysite/polls/views.py``::
|
So let's create a ``vote()`` function in ``mysite/polls/views.py``::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue