Ajax Call is sending empty request.POST or request.body

2017-03-31 Thread Camilo Torres
Hi. The difference is explained here: https://docs.djangoproject.com/en/1.10/ref/request-response/ You are sending the data in the ajax call as Jason (I suppose, from the content type), then in your view you should probably use request.body to read the json document. I also noticed you are

Ajax Call is sending empty request.POST or request.body

2017-03-30 Thread valerio orfano
Hi i am still not clear when using request.POST or request.body. Anyway this ajax call is sending emprty request.POST, or empty request.body: $(document).ready(function(){ $(".captcha_form").submit(function(event){ var check = $('#id_check').val();