title: How to pass a boolean from javascript to python?
body: <p>The following seems to pass a string instead of a boolean value. How would I pass a boolean?</p>
  
  <pre class="lang-javascript prettyprint-override"><code>$.post('/ajax/warning_message/', {'active': false}, function() {
              return
         });
  </code></pre>
  
  <pre class="lang-python prettyprint-override"><code>def warning_message(request):
      active  = request.POST.get('active')
      print active
      return HttpResponse()
  </code></pre>