{% csrf_token %}If you are using the ajax metod, you don't need this tag in the form template.
According with the documentation, you set the csrf token using javascript in the beforeSend part of the javascript code.
Hope I've correctly understood your problem.
Regards.
Giulio
-- Giulio Calacoci - 2ndQuadrant Italia PostgreSQL Training, Services and Support giulio.calacoci@2ndQuadrant.it | www.2ndQuadrant.it
No comments:
Post a Comment