Opened 4 years ago

Closed 4 years ago

#17169 closed Bug (invalid)

Typo in the tutorial, misleading?

Reported by: elgin@… Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords: Tutorial
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


In Part 4 of the "Writing Your First Django App" tutorial, near the end where we are told to edit our file to properly make use of the "generic views system," the "name=" parameter of the url() function says name='poll_results'. Shouldn't that say name='polls_results' ? That's what I changed it to in order to fix the problem I was having. It works perfectly with that change.

Change History (2)

comment:1 Changed 4 years ago by elgin@…

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 4 years ago by julien

  • Resolution set to invalid
  • Status changed from new to closed

Hey, thanks for the report! However, I think that the documentation is actually correct. If you look a bit above on that same page, there is:

urlpatterns = patterns('',

(I've removed the irrelevant code and replaced it with dots '....').

The url name is in fact 'poll_results'. I'm not sure exactly why it's failing for you. I recommend you to ask for help on django-users ( or in the #django channel on Freenode. If it does appear that there is a problem with the doc, then please feel free to reopen this ticket with more information. Cheers!

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