#10579 closed (invalid)
Generic views tutorial
Reported by: | zvikara | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.0 |
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
In Writing your first Django app, part 4,
When changing the sample to use generic views,
- polls/urls.py must include template_object_name:
info_dict = { 'queryset': Poll.objects.all(), 'template_object_name': 'poll', }
- In poll_list.html, you must change latest_poll_list to poll_list.
(This is in django 1.02)
Note:
See TracTickets
for help on using tickets.
The section on setting up generic views already states: