Opened 10 years ago

Closed 10 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


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 Changed 10 years ago by Aymeric Augustin

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.

You could edit your hosts file to point to, 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