Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1833 -- Fixed some errors in tutorials. Thanks, quarkcool@yaho…

…o.fr

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 27612d8b7d9263d883b83331883c7bbe862122e0 1 parent aa6b13c
Adrian Holovaty authored May 16, 2006
4  docs/tutorial02.txt
@@ -71,8 +71,8 @@ Make the poll app modifiable in the admin
71 71
 But where's our poll app? It's not displayed on the admin index page.
72 72
 
73 73
 Just one thing to do: We need to specify in the ``Poll`` model that ``Poll``
74  
-objects have an admin interface. Edit the ``mysite/polls/models/polls.py``
75  
-file and make the following change to add an inner ``Admin`` class::
  74
+objects have an admin interface. Edit the ``mysite/polls/models.py`` file and
  75
+make the following change to add an inner ``Admin`` class::
76 76
 
77 77
     class Poll(models.Model):
78 78
         # ...
2  docs/tutorial03.txt
@@ -91,7 +91,7 @@ Finally, it calls that ``detail()`` function like so::
91 91
 The ``poll_id='23'`` part comes from ``(?P<poll_id>\d+)``. Using parenthesis around a
92 92
 pattern "captures" the text matched by that pattern and sends it as an argument
93 93
 to the view function; the ``?P<poll_id>`` defines the name that will be used to
94  
-identify the matched pattern; and \d+ is a regular experession to match a sequence of
  94
+identify the matched pattern; and ``\d+`` is a regular experession to match a sequence of
95 95
 digits (i.e., a number).
96 96
 
97 97
 Because the URL patterns are regular expressions, there really is no limit on
5  docs/tutorial04.txt
@@ -218,8 +218,9 @@ from ``polls/views.py``. We don't need them anymore -- they have been replaced
218 218
 by generic views.
219 219
 
220 220
 The ``vote()`` view is still required. However, it must be modified to match
221  
-the new templates and context variables. Change the template call from ``polls/detail``
222  
-to ``polls/polls_detail``, and pass ``object`` in the context instead of ``poll``.
  221
+the new templates and context variables. Change the template call from
  222
+``polls/detail.html`` to ``polls/poll_detail.html``, and pass ``object`` in the
  223
+context instead of ``poll``.
223 224
 
224 225
 Run the server, and use your new polling app based on generic views.
225 226
 

0 notes on commit 27612d8

Please sign in to comment.
Something went wrong with that request. Please try again.