Opened 19 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)

strip_www.diff (1.3 KB ) - added by pa-ching 19 years ago.
strip_www2.diff (1.3 KB ) - added by pa-ching 19 years ago.
My mistake! Fixed a little error.

Download all attachments as: .zip

Change History (5)

by pa-ching, 19 years ago

Attachment: strip_www.diff added

by pa-ching, 19 years ago

Attachment: strip_www2.diff added

My mistake! Fixed a little error.

comment:1 by Adrian Holovaty, 19 years ago

Resolution: wontfix
Status: newclosed

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 Anogar, 15 years ago

Resolution: wontfix
Status: closedreopened

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 Russell Keith-Magee, 15 years ago

Resolution: wontfix
Status: reopenedclosed

If you disagree with a decision that has been made, you should start a discussion on django-developers.

Note: See TracTickets for help on using tickets.
Back to Top