Ticket #9944: tut04_decouple.diff

File tut04_decouple.diff, 580 bytes (added by Jeff Anderson, 16 years ago)

Here's the fix in patch form

  • docs/intro/tutorial04.txt

    diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt
    index 529b470..1ca46cc 100644
    a b Now, let's create a Django view that handles the submitted data and does  
    5050something with it. Remember, in :ref:`Tutorial 3 <intro-tutorial03>`, we created
    5151a URLconf for the polls application that includes this line::
    5252
    53     (r'^(?P<poll_id>\d+)/vote/$', 'mysite.polls.views.vote'),
     53    (r'^(?P<poll_id>\d+)/vote/$', 'vote'),
    5454
    5555So let's create a ``vote()`` function in ``mysite/polls/views.py``::
    5656
Back to Top