|
<li><a href="/polls/{{ question.id }}/">{{ question.question_text }}</a></li> |
The urlpattern had -
path("<int:question_id>/", views.detail, name="detail")
So we should remove polls from "polls/{{ question.id }}/"? otherwise the urls become /polls/polls/1 and gives error.
django-tutorial-step-by-step/mysite/polls/templates/polls/index.html
Line 4 in 72dfc6f
The
urlpatternhad -So we should remove polls from "polls/{{ question.id }}/"? otherwise the urls become /polls/polls/1 and gives error.