title: jQuery.getJSON doesn't trigger callback
body: <p>I have a html code:</p>
  
  <pre><code>&lt;button&gt;asd&lt;/button&gt;
  &lt;script type = "text/javascript"&gt;
  $('button').click(
      function() {
          $.getJSON('/schedule/test/', function(json) {
              alert('json: ' + json + ' ...');
          });
      }
  );
  &lt;/script&gt;
  </code></pre>
  
  <p>and corresponding view:</p>
  
  <pre><code>def test(request):
      if request.method == 'GET':
          json = simplejson.dumps('hello world!')
          return HttpResponse(json, mimetype = 'application/json')
  </code></pre>
  
  <p>The view is executed (tested using <code>print</code>), <code>json</code> variable is initialised but no alert appears. What did I do wrong? I've already seen some docs on this (<a href="http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback" rel="noreferrer"><a href="http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback" rel="noreferrer">http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback</a></a> for example) but I didn't find an answer.<br /><br />
  EDIT: The problem was, that <code>HttpResponse</code> was not imported... Unfortunately Django gave no error about it. Everything else was correct.
  regards<br />
  chriss</p>