title: accessing request headers on django/python
body: <p>I need to create a secure restFUL api using sencha and django. I am fairly new to python. So far i am able to send request from sencha to server using basic authentication as below</p>
  
  <pre><code> new Ext.data.Store({
     proxy: {
       type: "ajax",
        headers: {
         "Authorization": "Basic asdjksdfsksf="
      }
     }
   })  
  </code></pre>
  
  <p>In php/apache i can access those header with ease with the code below</p>
  
  <pre><code>$headers = apache_request_headers();
  print_r($headers);
  </code></pre>
  
  <p>How to do this in python? </p>