Relative Content

Tag Archive for python-3.xdjangodjango-authentication

Django built in Logout view `Method Not Allowed (GET): /users/logout/`

Method Not Allowed (GET): /users/logout/ Method Not Allowed: /users/logout/ [10/Dec/2023 12:46:21] “GET /users/logout/ HTTP/1.1” 405 0 This is happening when I went to url http://127.0.0.1:8000/users/logout/ urls.py: from django.contrib.auth import views as auth_views urlpatterns = [ …other urls… path(‘users/logout/’, auth_views.LogoutView.as_view(), name=’logout’), ] I am expecting user to logout python-3.x django django-authentication 1 Since django-5, you need […]

Django built in Logout view `Method Not Allowed (GET): /users/logout/`

Method Not Allowed (GET): /users/logout/ Method Not Allowed: /users/logout/ [10/Dec/2023 12:46:21] “GET /users/logout/ HTTP/1.1” 405 0 This is happening when I went to url http://127.0.0.1:8000/users/logout/ urls.py: from django.contrib.auth import views as auth_views urlpatterns = [ …other urls… path(‘users/logout/’, auth_views.LogoutView.as_view(), name=’logout’), ] I am expecting user to logout python-3.x django django-authentication 1 Since django-5, you need […]