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.

Change History (1)

comment:1 by Aymeric Augustin, 13 years ago

Resolution: needsinfo
Status: newclosed

As pointed out in #5718, PREPEND_WWW isn't generally useful in development: it redirects you to www.localhost:8000 or www.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?

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