On Friday 08 of April 2011 13:37:53 Casey Greene wrote: > Can you change the request type from POST to GET? It sounds like this > is not a database modifying operation. > > Casey Yes, I could but the generated Dajaxice script doesn't give me the option to use a GET request. Perhaps I should just write my own script (if Dajaxice even accepts GET requests).
On Friday 08 of April 2011 13:06:03 Sam Walters wrote: > Also looking at the request in firebug you can see the 'X-CSRFToken' > needs to be added as an attribute with the javascript you use. At the point the first AJAX request is sent, the user doesn't have a valid CSRF token yet, since the user hasn't visited a Django page yet. .That's why a GET may be preferable here. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.