Opened 11 years ago
Closed 11 years ago
#21834 closed Bug (fixed)
A simple typo to be fixed
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.6 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In https://docs.djangoproject.com/en/1.6/intro/tutorial04/
class DetailView(generic.DetailView): model = Poll template_name = 'polls/detail.html'
By default, the DetailView generic view uses a template called <app name>/<model name>_detail.html. In our case, it’ll use the template "polls/poll_detail.html". The template is 'polls/detail.html' as indicated in the code.
The bold part should be just detail
Note:
See TracTickets
for help on using tickets.
In 45535c8a4cba200cd610010ec1e2d515de6c2475: