Opened 13 years ago
Closed 13 years ago
#17570 closed Cleanup/optimization (invalid)
Tutorial 04 discrepancies
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
https://docs.djangoproject.com/en/1.3/intro/tutorial04/
A couple of discrepancies in Part 4 of the tutorial:
1.-----
About halfway down, it says that the code for the results() view is exactly the same as the detail() view except for the template name. That's not correct, however. The detail() view has a second argument in the return statement: "context_instance=RequestContext(request)"
2.-----
Later, near the bottom, in the explanatory text, it states: "In our case, it'll use the template "polls/poll_detail.html"
Actually, it uses the template "polls/detail.html"
I don't think either of these concerns are valid.
Thanks for reporting anyway.