title: AJAX success callback function not called
body: <p>i'm working with python and js on a simple website.
  i'm trying to call a method from the client side and get result, but no matter what i do 
  success function isnt happening.</p>
  
  <p>this is my JS</p>
  
  <pre><code> $.ajax({
          url: "http://127.0.0.1:8000/api/gtest/",
          type: "POST",
          data: { information : "You have a very nice website, sir."},
          dataType: "json",
          success: function(data) {
              alert ("post is success");
          },
          error: function(request,error) { 
              alert(request.responseText);
              alert(error);
          }
      });
  </code></pre>
  
  <p>this is my server side code</p>
  
  <pre><code>def gtest(request):
      jsonValidateReturn = simplejson.dumps({"jsonValidateReturn": "ddddd"})
      return HttpResponse(jsonValidateReturn, content_type='application/json', mimetype='application/json')   
  </code></pre>
  
  <p>The server responds to the call - 
  "POST /api/gtest/ HTTP/1.1" 200 31</p>
  
  <p>tried to go over similar questions here but with no success :\
  no matter what I do, only the error function is called.
  the error alert is always empty.. no actual message.</p>
  
  <p>I know this is probably a small change but I can't find it.</p>