Monday, May 30, 2011

setlang using AJAX

Hello everybody,
I'd like to use an AJAX request without any form to change the
language of my site.
My problem is that I haven't found a way to avoid the csrf_token
How can I generate the token without any form?

The other way it to use setlang with a GET request but, according to
docs, this seems no more possible.

Thanks for your support.

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment