POSTing ajax data in query-string format to Django
1. Sending query-string formatted data with jQuery.ajax() The ' data' setting of jQuery.ajax() setting may either contain a String or a PlainObject . In case of a string, the data is sent 'as-is'. See example 1: $.ajax({ type: 'POST', data: "test,1,2,3"); -> data will be sent as "test,1,2,3" In case of an object, it is automatically converted to a query-string, no matter what the 'contentType' setting is. See example 2: $.ajax({ type: 'POST', data: {"test": 1, "test2"="two"}); -> data will be sent as "?test=1&test2=two" Objects must be a set of key/value pair(s). If any value is an array, the conversion depends on the traditional setting. If 'traditional ' is set to true , the ajax() method will only be able to send shallow objects: a value can be an indexed array, but not an associative array ( use json instead ). The conversion looks l...