Friday, March 2, 2018

Bug in 2.0 tutorial?

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.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/81c64052-3350-4064-83c1-aa0b791ff115%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment