Skip to content Skip to sidebar Skip to footer

Django 1.7.4: Error On Django 1.7 Tutorial04: Noreversematch Error For Reverse For 'vote'

I have been banging my head against the wall all morning trying to complete the Django 1.7 tutorial04. I have read through all the similar posts on stackoverflow regarding the NoRe

Solution 1:

Instead of question_id, try using question.id in the template, i.e.:

<form action="{% url 'polls:vote' question.id %}" method="post">

Post a Comment for "Django 1.7.4: Error On Django 1.7 Tutorial04: Noreversematch Error For Reverse For 'vote'"