I'm using the view decorator @require_http_methods(["POST"])
. If anything but a post request is sent, it should redirect the user to a custom 405 error page.
The 405.html template is located inside the folder root/templates/405.html
. Django's default 405 page is displayed (a pure html error page), however, when an error occurs. All other error templates (404.html, 500.html) inside this templates folder work correctly. Why is this?