 <p>Your <code>booking</code> url takes one parameter as <code>course_code</code>, hence you are getting error.</p> <p>You should update the line <code>{% url 'booking' %}</code> appropriately to pass some <code>course_code</code> to the url.</p> <p>So you need to update it with something like <code>{% url 'booking' course_code %}</code>, here I assume to have <code>course_code</code> parameter available in template, you can change it according to your code.</p>