<form id="new_image_form" action="{% url 'new_image_form' path %}" method="post" enctype="multipart/form-data" class="dropzone"> {% csrf_token %} {{ form.as_p }} <input type="submit" value="Submit"> </form>