Opened 18 years ago
Closed 15 years ago
#2112 closed enhancement (wontfix)
[patch] Add the reverse of PREPEND_WWW, which strips leading "www."
Reported by: | pa-ching | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | trivial | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I actually wanted the exact reverse functionality given by PREPEND_WWW, so I made this tiny addition. Just a nit-picky thing, not very important.
Attachments (2)
Change History (5)
by , 18 years ago
Attachment: | strip_www.diff added |
---|
by , 18 years ago
Attachment: | strip_www2.diff added |
---|
comment:1 by , 18 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
This is a bit too much of a special case, so I don't think it should go in Django proper. But you can just use your own custom middleware to do it.
comment:2 by , 15 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
I think this should be revisited. This simply rounds out the functionality of the Common middleware's ability to perform very basic redirects. More and more people are going by simply "domain.com" instead of "www.domain.com", and providing a simple method in the core middleware alongside the PREPEND_WWW method makes a lot of sense.
comment:3 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
If you disagree with a decision that has been made, you should start a discussion on django-developers.
My mistake! Fixed a little error.