[Django] User Logout
views.py from django.contrib.auth import authenticate, login, logout def logoutUser(request): logout(request) return redirect('home') urls.py from django.urls import path from . import views urlpatterns = [ path('login/', views.loginPage, name = "login"), path('logout/', views.logoutUser, name = "logout"), path('', views.home, name = "home"), path('room//', views.room, name = "room"), path('crea..
2023. 3. 9.