Using Django LogoutView

When I try to log a user out using LogoutView I get the following error message indicating you are not allowed to make GET requests to that URL end point.

Method Not Allowed (GET): /accounts/logout/

Can someone point me in the right direction? I could always just write a simple function but that of defeats the purpose of using the builtin LogoutView.

See the thread at Deprecation of GET method for LogoutView for a complete discussion of this topic along with some ideas for resolution.

1 Like

Thank you very much. Very useful!