Bug in 2.0 tutorial?

40 views
Skip to first unread message

Cictani

unread,
Mar 3, 2018, 2:09:01 AM3/3/18
to Django users
Hi,

I'm doing the tutorial right now and I'am at step 3: https://docs.djangoproject.com/en/2.0/intro/tutorial03/

I think the path is not correct in the tutorial.

In the tutorial:

path('<int:question_id>/', views.detail, name='detail'),

If I do it like that I get a 404 I have to use:

path('/<int:question_id>/', views.detail, name='detail'),

if you agree that this is a bug I will report it.

Cictani

unread,
Mar 3, 2018, 2:34:53 AM3/3/18
to Django users
Well it was my mistake I forgot the '/' in the urls.py of my site where I included the polls urls. So no bug :)
Reply all
Reply to author
Forward
0 new messages