title: Django Test Client Redirects Unexpectedly
body: <p>Currently, I am using TestCase to make a HTTP Post request which is being redirected and does not have the post data.  I'd like to make a post request without it being redirected and to preserve the data.  How do I do so?  </p>
  
  <p>1) Evidence of redirection:</p>
  
  <p>babies/urls.py<br>
      from django.conf.urls import patterns, include, url</p>
  
  <pre><code>urlpatterns = patterns('babies',
    # Endpoints
    url(r'^create_baby/$', 'views.create_baby'),
    ...
  )
  </code></pre>
  
  <p>babies/tests.py</p>
  
  <pre><code>from django.test import TestCase
  from django.test.client import Client
  import pdb
  class OrderCreationTest(TestCase): 
    def setUp(self):
      self.normal_baby_data = {
        'birth_time': {
          'date' : '04-07-2013'
        }
      } 
    def test_baby_creation(self):
      response = self.client.post('/consumer/create_baby/', 
                              self.normal_baby_data,
                              follow=True
                              )
      pdb.set_trace()
  </code></pre>
  
  <p>bash results:</p>
  
  <pre><code>(Pdb) response.redirect_chain
  [('https://testserver/consumer/create_baby/', 302)]
  </code></pre>
  
  <p>If follow=False then the view's create_baby method is never created and also there is not redirect chain. The bash results are:</p>
  
  <pre><code>(Pdb) response.redirect_chain
  *** AttributeError: 'HttpResponseRedirect' object has no attribute 'redirect_chain'
  </code></pre>
  
  <p>2) Evidence that there is no post data</p>
  
  <p>babies/views.py</p>
  
  <pre><code>def create_baby(request):
    pdb.set_trace()
    ...
  
  (Pdb) p request
  &lt;WSGIRequest
  path:/consumer/create_baby/,
  GET:&lt;QueryDict: {}&gt;,
  POST:&lt;QueryDict: {}&gt;,
  COOKIES:{'sessionid': 'f88ffoplh6lyytarn9n85z6bd5lefbzo'},
  META:{u'CONTENT_TYPE': 'text/html; charset=utf-8',
   u'CSRF_COOKIE': u'OC5LFOj8HvqTu0cKoAmty7vkYP0jNk3Q',
   u'HTTP_COOKIE': u' sessionid=f88ffoplh6lyytarn9n85z6bd5lefbzo; Domain=None; expires=None; Max-Age=None; Path=/; secure',
   u'PATH_INFO': u'/consumer/create_order/',
   u'QUERY_STRING': '',
   u'REMOTE_ADDR': '127.0.0.1',
   u'REQUEST_METHOD': 'GET',
   u'SCRIPT_NAME': u'',
   u'SERVER_NAME': 'testserver',
   u'SERVER_PORT': '80',
   u'SERVER_PROTOCOL': 'HTTP/1.1',
   u'wsgi.errors': &lt;_io.BytesIO object at 0x10a6fa230&gt;,
   u'wsgi.input': &lt;django.test.client.FakePayload object at 0x10b067b50&gt;,
   u'wsgi.multiprocess': True,
   u'wsgi.multithread': False,
   u'wsgi.run_once': False,
   u'wsgi.url_scheme': 'https',
  </code></pre>