Opened 13 years ago
Closed 13 years ago
#17367 closed Uncategorized (needsinfo)
PREPEND_WWW should warn on POSTs too
Reported by: | Vlada Macek | Owned by: | nobody |
---|---|---|---|
Component: | Core (URLs) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
There is a nice on-DEBUG RuntimeError warning in the CommonMiddleware saying that Django can't maintain POST data and redirect for APPENT_SLASH at the same time.
There is also another redirect nearby that can be enabled by PREPEND_WWW. I think having similar POST warning would be handy for developers.
Note:
See TracTickets
for help on using tickets.
As pointed out in #5718,
PREPEND_WWW
isn't generally useful in development: it redirects you towww.localhost:8000
orwww.127.0.0.1:8000
.You could edit your hosts file to point
www.yoursite.com
to 127.0.0.1, but then you can no longer access the "real" website, and I don't think many people do that.Technically, adding the warning is trivial; could you just clarify the use case?