Re: [Django] #12227: PREPEND_WWW breaks the test client

14 views
Skip to first unread message

Django

unread,
Sep 9, 2011, 7:33:03 PM9/9/11
to django-...@googlegroups.com
#12227: PREPEND_WWW breaks the test client
-------------------------------------+-------------------------------------
Reporter: andybak | Owner: nobody
Type: Bug | Status: new
Milestone: | Component: Testing framework
Version: 1.1 | Severity: Normal
Resolution: | Keywords: test client,
Triage Stage: Accepted | redirect, prepend_www
Needs documentation: 0 | Has patch: 0
Patch needs improvement: 0 | Needs tests: 0
UI/UX: 0 | Easy pickings: 0
-------------------------------------+-------------------------------------
Changes (by mlavin):

* ui_ux: => 0
* easy: => 0


Comment:

Not sure how to fix but I've added a test case which demonstrates the
described issue.

--
Ticket URL: <https://code.djangoproject.com/ticket/12227#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 12, 2014, 7:45:01 AM4/12/14
to django-...@googlegroups.com
#12227: PREPEND_WWW breaks the test client
-------------------------------------+-------------------------------------
Reporter: andybak | Owner: Sharpek
Type: Bug | Status: assigned

Component: Testing framework | Version: 1.1
Severity: Normal | Resolution:
Keywords: test client, | Triage Stage: Accepted
redirect, prepend_www | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by Sharpek):

* owner: nobody => Sharpek
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/12227#comment:5>

Django

unread,
Apr 12, 2014, 7:46:01 AM4/12/14
to django-...@googlegroups.com
#12227: PREPEND_WWW breaks the test client
-------------------------------------+-------------------------------------
Reporter: andybak | Owner: Sharpek
Type: Bug | Status: assigned
Component: Testing framework | Version: 1.1
Severity: Normal | Resolution:
Keywords: test client, | Triage Stage: Accepted
redirect, prepend_www | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by Sharpek):

I' going to check&fix this issue.

--
Ticket URL: <https://code.djangoproject.com/ticket/12227#comment:6>

Django

unread,
Jul 31, 2015, 9:42:29 AM7/31/15
to django-...@googlegroups.com
#12227: PREPEND_WWW breaks the test client
-------------------------------------+-------------------------------------
Reporter: andybak | Owner: Sharpek
Type: Bug | Status: assigned
Component: Testing framework | Version: 1.1
Severity: Normal | Resolution:
Keywords: test client, | Triage Stage: Accepted
redirect, prepend_www |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by jamesbeith):

I’ve been experiencing this and am using `SERVER_NAME` and `host` as a
fix. Though as the number of tests I write for the project grows it
doesn’t seem the most ideal solution.

{{{
response = self.client.get('/redirect/', follow=True,
SERVER_NAME='www.testserver')
self.assertRedirects(response, '/result/', status_code=301,
host='www.testserver')
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/12227#comment:7>

Django

unread,
Feb 12, 2021, 4:28:06 AM2/12/21
to django-...@googlegroups.com
#12227: PREPEND_WWW breaks the test client
-------------------------------------+-------------------------------------
Reporter: Andy Baker | Owner: (none)
Type: Bug | Status: new

Component: Testing framework | Version: 1.1
Severity: Normal | Resolution:
Keywords: test client, | Triage Stage: Accepted
redirect, prepend_www |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* owner: Sharpek => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/12227#comment:8>

Django

unread,
Feb 26, 2026, 1:46:43 PM (2 days ago) Feb 26
to django-...@googlegroups.com
#12227: PREPEND_WWW breaks the test client
-------------------------------------+-------------------------------------
Reporter: Andy Baker | Owner: Anurag
| Verma
Type: Bug | Status: assigned
Component: Testing framework | Version: 1.1
Severity: Normal | Resolution:
Keywords: test client, | Triage Stage: Accepted
redirect, prepend_www |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Anurag Verma):

* owner: (none) => Anurag Verma
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/12227#comment:9>

Django

unread,
Feb 26, 2026, 1:48:48 PM (2 days ago) Feb 26
to django-...@googlegroups.com
#12227: PREPEND_WWW breaks the test client
-------------------------------------+-------------------------------------
Reporter: Andy Baker | Owner: Anurag
| Verma
Type: Bug | Status: assigned
Component: Testing framework | Version: 1.1
Severity: Normal | Resolution:
Keywords: test client, | Triage Stage: Accepted
redirect, prepend_www |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Anurag Verma):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/12227#comment:10>
Reply all
Reply to author
Forward
0 new messages