Opened 10 years ago
Closed 10 years ago
#22916 closed Bug (invalid)
Instruction to change index.html template is missing
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.6 |
Severity: | Normal | 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
When working on generic views, there is a need to change index.html to work on 'object_list'.
Current documentation says to change code to use the existing template, which does not work; posts are not iterated but "no posts" is displayed from the template.
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Hi,
Unless I'm mistaken, IndexView
uses context_object_name = 'latest_poll_list'
which means it should be fully compatible with the index.html
template that was written in part 3.
Thanks.
Note:
See TracTickets
for help on using tickets.
This is in part 4 of the Django tutorial (1.6 docs)