[Django] #32250: Typo in tutorial 04

5 views
Skip to first unread message

Django

unread,
Dec 8, 2020, 4:04:25 AM12/8/20
to django-...@googlegroups.com
#32250: Typo in tutorial 04
-----------------------------------------+------------------------
Reporter: mattbingham | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Keywords: typo
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Hi,
I'm just working my way through the tutorials and ran into an issue on
tutorial 4. I keep getting a page not found error, and I believe this may
be due to a typo in the tutorial.

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.

Django

unread,
Dec 8, 2020, 4:26:06 AM12/8/20
to django-...@googlegroups.com
#32250: Typo in tutorial 04
-------------------------------+--------------------------------------
Reporter: mattbingham | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 3.1
Severity: Normal | Resolution: invalid

Keywords: typo | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* 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>

Reply all
Reply to author
Forward
0 new messages