Skip to content

Glossary: Django Basics

{% csrf_token %}

Also written: csrf_token

A template tag that adds the hidden secret field Django needs to accept a POST form. Without it you get `Forbidden (403)`.

Where the book teaches it

Related terms

CSRF (cross-site request forgery)POST