Код: Выделить всё
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
Код: Выделить всё
urls.py:Код: Выделить всё
from django.contrib.auth import views as auth_views
urlpatterns = [
...other urls...
path('users/logout/', auth_views.LogoutView.as_view(), name='logout'),
]
Подробнее здесь: https://stackoverflow.com/questions/776 ... ers-logout
Мобильная версия