로그아웃 구현
[pinterest clone (14)] Login / Logout 구현
장고에 Login view, Logout view 제공된다. 1 urls.py from django.contrib.auth.views import LoginView, LogoutView from django.urls import path from accountapp.views import hello_world, AccountCreateView app_name = 'accountapp' urlpatterns = [ path('hello_world/', hello_world, name='hello_world'), path('login/', LoginView.as_view(template_name='accountapp/login.html'), name='login'), path('logout/', Logout..