[Fixed]-Django: Troubles uploadind and handling an image (CSRF token missing or incorrect)

1👍

index.html

<form action="{% url 'pixelate:pixelate' %}" method="post"  enctype="multipart/form-data">
    {% csrf_token %}
    {{ form }}
    <input type="submit" value="Submit" />
</form>

Leave a comment