2
Your <form>
element has the action set to action="/"
. This makes the form submit send a POST request to the homepage not the current page. You can correct this by making the form action empty action=""
to submit to the current URL or be explicit and use the {% url %}
template tag for the required form action.
Source:stackexchange.com