Well it was my mistake I forgot the '/' in the urls.py of my site where I included the polls urls. So no bug :)
Am Samstag, 3. März 2018 08:09:01 UTC+1 schrieb Cictani:
-- Am Samstag, 3. März 2018 08:09:01 UTC+1 schrieb Cictani:
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:If I do it like that I get a 404 I have to use:
path('<int:question_id>/', views.detail, name='detail'),
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/89116638-bdae-4d7a-8d48-e8b00632604f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment