Category archives: Django

Django Programming Tutorials

Django Formset Can Delete

Last update on March 20, 2015.

When setting can_delete = True in django formset factory, remember that the delete field in the form is in capital letters.

eg: {{form.DELETE}}

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