I used a @require_http_methods decorator in my code for the logout page, but I can't wrap my head around the proper way to redirect a user on the method error.
It is suggested to create a middleware there: django require_http_methods. default page
But I wonder if there is a simpler way?
(I know I can just check for a method manually like this: if method == 'POST') But I want to know what the best practice is.