django ajax post csrf token code example Example: Django Rendering Forms Manually and using csfr token {% csrf_token %} {{ form.field1 }} {{ form.field2 }} ...