1
The problem is that you don’t have an action=""
in your form
tag which simply means that you want to post to the existing URL, including any querystring (ie. existing GET
parameters).
Just add action=""
to the form
tag, such as:
<form method="POST" action="{% url 'insertForm' %}">
Source:stackexchange.com