You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In templates/base.html, the use of an <a> hypertext element when calling authviews.LogoutView is causing an http 405 error because a GET request to LogoutView is being sent. LogoutView expects POST.
Why did you guys use the hypertext link to activate LogoutView?
The text was updated successfully, but these errors were encountered:
Look like thats true, i also could not figure it out that they had created a logged_out.html page and in code i also could not figure out the piece of code that tells to redirect to this page when user click on logout button
Btw in django 4, it work.
In django 5
Support for logging out via GET requests in the django.contrib.auth.views.LogoutView and django.contrib.auth.views.logout_then_login() is removed.`
``
In
templates/base.html
, the use of an<a>
hypertext element when callingauthviews.LogoutView
is causing an http 405 error because a GET request toLogoutView
is being sent.LogoutView
expects POST.Why did you guys use the hypertext link to activate LogoutView?
The text was updated successfully, but these errors were encountered: