[Django]-CSRF Protection in Django 1.4

5👍

If you want csrf protection, put the {% csrf_token %} tag in your form.

If you don’t want csrf protection, import and put the @csrf_exempt decorator at the top of your view (see the docs).

Leave a comment