Opened 5 years ago

Closed 5 years ago

#20277 closed Bug (invalid)

polls/ error

Reported by: henry.monma@… Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords: tutorial, configuration, url
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


There is a error in the Tutorial when configuring polls/

It is written:
url(r'(?P<poll_id>\d+)/$', views.detail, name='detail'),
(?P<poll_id>\d+)/results/$', views.results, name='results'),
url(r'(?P<poll_id>\d+)/vote/$',, name='vote'),

When it should be:

url(r'/(?P<poll_id>\d+)/$', views.detail, name='detail'),
/(?P<poll_id>\d+)/results/$', views.results, name='results'),
url(r'/(?P<poll_id>\d+)/vote/$',, name='vote'),

Put the slash .../(?...

Change History (1)

comment:1 Changed 5 years ago by Baptiste Mispelon

Resolution: invalid
Status: newclosed


I believe the tutorial is correct here.

The slash is part of the url(r'^polls/', include('polls.urls')), rule written in the main

This is described in the paragraphs that follow the code you quoted.


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