#12227: PREPEND_WWW breaks the test client ------------------------------------------------+--------------------------- Reporter: andybak | Owner: nobody Status: new | Milestone: Component: Testing framework | Version: 1.1 Keywords: test client, redirect, prepend_www | Stage: Unreviewed Has_patch: 0 | ------------------------------------------------+--------------------------- With PREPEND_WWW set to true the test client will always give a 301 status_code:
{{{ >>> from django.test.client import Client >>> c = Client() >>> r = c.get('/admin/', follow=True) >>> r.status_code 301 >>> r.redirect_chain [('http://www.testserver/admin/', 301), ('http://www.testserver/admin/', 301)] }}} -- Ticket URL: <http://code.djangoproject.com/ticket/12227> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=.