When I submit a form, it gives me an error for csrf attack. so what’s csrf attack?
make sure to include a csrf token in your django forms front end like this. This is a security feature from django
<form method="post">
{% csrf_token %}
<!-- Form fields go here -->
<button type="submit">Submit</button>
</form>
but I ask why we use CSRF attack. Can you explain why?