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
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();
2 matches
Mail list logo