Opened 17 years ago
Closed 17 years ago
#5577 closed (worksforme)
description incomplete in http://www.djangoproject.com/documentation/0.96/tutorial04/
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 0.96 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The tutorial states:
"Similarly, the object_list generic view uses a template called <app name>/<model name>_list.html. Thus, rename polls/index.html to polls/poll_list.html."
The html-file has to be edited: the variable "latest_poll_list" has to be substituted by "object_list".
A similar change is required to poll_detail.html.
Note:
See TracTickets
for help on using tickets.
Scroll down a little bit further and you'll see:
"In previous parts of the tutorial, the templates have been provided with a context that contains the
poll
andlatest_poll_list
context variables. However, the generic views provide the variablesobject
andobject_list
as context. Therefore, you need to change your templates to match the new context variables. Go through your templates, and modify any reference tolatest_poll_list
toobject_list
, and change any reference topoll
toobject
."