Tag archives: class based view

Ajax Post + Django

Last update on March 20, 2015.

When using $.ajax post you must be careful of what you set as contentType option. If you set it as 'application/json' you will have to parse the data from the request.BODY variable in your django class based view. The request.POST variable (Querydict) will be empty. It is better to not use the ...

Continue reading