{{{
from django.urls import path
from . import views
urlpatterns = [
# ex: /polls/
path('', views.index, name='index'),
# ex: /polls/5/
path('<int:question_id>/', views.detail, name='detail'),
# ex: /polls/5/results/
path('<int:question_id>/results/', views.results, name='results'),
# ex: /polls/5/vote/
path('<int:question_id>/vote/', views.vote, name='vote'),
]
}}}
without the forward slash, a page not found error is reported for /polls/5
etc..
--
Ticket URL: <https://code.djangoproject.com/ticket/29657>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
I think the documentation is correct. Will close the ticket. Sorry for the
inconvenience.
--
Ticket URL: <https://code.djangoproject.com/ticket/29657#comment:1>