title: Django says is_ajax is false on a JQuery AJAX request
body: <p><strong>Context:</strong> a chrome browser extension uses JQuery to request a response from a remote django app. Django recognizes that the request is made via AJAX and responds with "Hello AJAX!". I'm basing my exercise off <a href="http://webcloud.se/log/AJAX-in-Django-with-jQuery/" rel="noreferrer">this great example</a>. Because this request is being made from a chrome extension, the request is being made cross site, so I've used the <code>@CSRF_exempt</code> decorator on my Django view.    </p>
  
  <p><strong>Problem:</strong> My Django view is not recognizing the request as an AJAX request, and instead of responding <code>Hello AJAX!</code> it responds <code>Hello not AJAX!</code>. </p>
  
  <p><strong>My Django view:</strong><br>
  (The url <code>/xhr_test</code> uses the following view)</p>
  
  <pre><code>@csrf_exempt
  def check_login_extension(request):
      if request.is_ajax():
          message = "Hello AJAX!"
      else:
          message = "Hello not AJAX"
      return HttpResponse(message)
  </code></pre>
  
  <p><strong>My JQuery request:</strong></p>
  
  <pre><code>function xhrconnect() {
      $.get("http://localhost:8000/xhr_test", function(data) {
        document.getElementById('xhrmsg').innerHTML = (data);
      });
  }
  </code></pre>