title: Django 'int' object has no attribute 'status_code'
body: <p>I start with def start method, it calls go_adder to add the num value 5 times in the adder.html until num equals 5. After that, the adder method should return ready=1</p>
  
  <p>In views.py </p>
  
  <pre><code>def start(request):
      num=0
      ready_or_not=go_adder(num)
      return HttpResponse("Ready: %s "%str(ready_or_not))
  
  def go_adder(num):
      ready=0
      if num&lt;5:
          return render_to_response('adder.html',{'num':num})
      elif num==5:
          ready=1
          return ready
  
  def check_post(request,num):
      if request.method == 'POST':
          num+=1
          return adder(num)
  </code></pre>
  
  <p>When I try to run this snippet code, it works until my "num=5", Then I get that error : </p>
  
  <pre><code>'int' object has no attribute 'status_code' 
  Exception Location: C:\Python27\lib\site-packages\django\middleware\common.py in process_response, line 94
  </code></pre>
  
  <p>and Traceback says:</p>
  
  <pre><code>C:\Python27\lib\site-packages\django\core\handlers\base.py in get_response
                  response = middleware_method(request, response) ...
  ▶ Local vars
  C:\Python27\lib\site-packages\django\middleware\common.py in process_response
          if response.status_code == 404: ...
  ▶ Local vars 
  </code></pre>
  
  <p>How can I fix that error ? Could you please help me ? </p>