1👍
This will do the trick
input(type='hidden', value='{{ csrf_token }}', name='csrfmiddlewaretoken')
0👍
Using pyjade and django, it looks like the code:
form(method="POST")
input(type="hidden", name="_csrf", value="{{ csrf_token }}")
or possibly:
form(method="POST")
input(type="hidden", name="_csrf", value='#{ csrf_token }')
should work, depending on your setup.
Source:stackexchange.com