Changeset 2923
- Timestamp:
- 05/16/06 15:45:20 (2 years ago)
- Files:
-
- django/trunk/docs/tutorial02.txt (modified) (1 diff)
- django/trunk/docs/tutorial03.txt (modified) (1 diff)
- django/trunk/docs/tutorial04.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/tutorial02.txt
r2809 r2923 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 andmake 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): django/trunk/docs/tutorial03.txt
r2908 r2923 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 of94 identify the matched pattern; and ``\d+`` is a regular experession to match a sequence of 95 95 digits (i.e., a number). 96 96 django/trunk/docs/tutorial04.txt
r2809 r2923 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.
