In the Amend views section
(https://docs.djangoproject.com/en/3.1/intro/tutorial04/#amend-views), I
believe the code:
{{{#!python
class DetailView(generic.DetailView):
model = Question
template_name = 'polls/detail.html'
}}}
should actually be:
{{{#!python
class DetailView(generic.DetailView):
model = Question
template_name = 'polls/details.html'
}}}
I.e. '''detail.html''' >> '''details.html'''
Obviously, I may be wrong as I'm a complete beginner, but wanted to
mention it in case this is a typo and others run into the same issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/32250>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
Tutorial works for me, you've probably made a typo in previous steps,
because tutorial uses `polls/detail.html` in all places.
--
Ticket URL: <https://code.djangoproject.com/ticket/32250#comment:1>