Tuesday, November 19, 2013

Re: UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value.

Il 19/11/2013 13:45, huw_at1 ha scritto:
{% 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