1👍
✅
This is not a Django issue. User Agents are not supposed to automatically redirect POST requests. According to both HTTP 1.0 and HTTP 1.1 specification:
If the [301 or 302] status code is received in response to a request
other than GET or HEAD, the user agent MUST NOT automatically redirect
the request unless it can be confirmed by the user, since this might
change the conditions under which the request was issued.
Most browsers makes a GET request to the new location, even if the original request was a POST.
You just need to make domain.com/sub
an action
of your forms, not subdom.domain.com
.
Source:stackexchange.com