When I do a Http DELETE request to a django app. it directly returns a 301(Moved permanantly) response and redirects me to GET request of same url. I am guessing that Http PUT request would return 301 just like DELETE request. Is there any way to process DELETE request with django?
Share
The redirect is caused by the APPEND_SLASH setting:
Make sure your server and client are consistent with trailing slashes.
If your project does not need the trailing slashes at all (i.e., it is an api without trailing slashes) you can disable it. Otherwise, make sure your urlconf accept paths without a trailing slash.