Когда я вызываю Django url в ajax, получаю ошибку ниже
AssertionError: .accepted_renderer не установлен в Response.
Это мой код:
function download(){
$.ajax({
url: "/mdm/exam_app/get_assessment_count/",
dataType: 'json',
data:{
},
type:'GET',
success: function (data) {
alert("inside the success method");
},
error: function(){
console.log("error");
}
});
}