title: 'dict' object has no attribute 'status_code' error in django project
body: <p>I am getting this error in my django project, how can i resolve it.</p>
  
  <p>Traceback Switch to copy-and-paste view</p>
  
  <pre><code>/home/vishakha/webapps/django/local/lib/python2.7/site-packages/django/core/handlers/base.py in get_response
              response = self.apply_response_fixes(request, response) ...
  ▶ Local vars
  /home/vishakha/webapps/django/local/lib/python2.7/site-packages/django/core/handlers/base.py in apply_response_fixes
              response = func(request, response) ...
  ▶ Local vars
  /home/vishakha/webapps/django/local/lib/python2.7/site-packages/django/http/utils.py in conditional_content_removal
      if 100 &lt;= response.status_code &lt; 200 or response.status_code in (204, 304): ...
  ▶ Local vars
  </code></pre>