title: Python requests response with no status_code
body: <p>Using Oauth2 through rauth in a Django project, I am able to connect to a custom API. Once the user is logged in via an access token, the API documentation states that I can get user information by sending a request with a specific header.</p>
  
  <p>I am able to send the request with the Requests Python library, but I just cannot find how to process the response, as the api's response allegedly is a simple json file. Django raises an AttributeError as the response has no status_code attribute :</p>
  
  <pre><code>Traceback:
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
    230.             response = self.apply_response_fixes(request, response)
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in apply_response_fixes
    277.             response = func(request, response)
  File "/usr/local/lib/python2.7/dist-packages/django/http/utils.py" in conditional_content_removal
    30.     if 100 &lt;= response.status_code &lt; 200 or response.status_code in (204, 304):
  
  Exception Type: AttributeError at /complete/myecp
  Exception Value: 'dict' object has no attribute 'status_code'
  </code></pre>
  
  <p>When I inspect the response in the local variables, it's indeed json formatted, with a 'X-Frame-Options' key and a list of keys with user information :</p>
  
  <pre><code>    {'X-Frame-Options': 'SAMEORIGIN',
       ...
       u'gender': u'M',
       u'id': 22943,
       ...
  }
  </code></pre>
  
  <p>Any idea about how I can retrieve this response properly?</p>
  
  <p>Here's the request in my view :</p>
  
  <pre><code>headers = {'Authorization': 'Bearer '+token} 
  r = requests.get('https://the.url', headers=headers)
  user_data = r.content
  </code></pre>