Opened 4 years ago

Closed 4 years ago

#32250 closed Bug (invalid)

Typo in tutorial 04

Reported by: Matt Owned by: nobody
Component: Documentation Version: 3.1
Severity: Normal Keywords: typo
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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:

class DetailView(generic.DetailView):
  model = Question
  template_name = 'polls/detail.html'

should actually be:

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.

Change History (1)

comment:1 by Mariusz Felisiak, 4 years ago

Resolution: invalid
Status: newclosed

Tutorial works for me, you've probably made a typo in previous steps, because tutorial uses polls/detail.html in all places.

Note: See TracTickets for help on using tickets.
Back to Top