title: How to resolve AssertionError: .accepted_renderer not set on Response in django and ajax
body: <p>While I am calling Django url in ajax, getting below error</p>
  
  <blockquote>
    <p>AssertionError: .accepted_renderer not set on Response.</p>
  </blockquote>
  
  <p>This is my code:</p>
  
  <pre><code>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");
            }        
        });
  }
  </code></pre>