From 79e4b550f37dc881ebb3d7111ebe764af53deb90 Mon Sep 17 00:00:00 2001 From: Piyush Dive Date: Sun, 8 Oct 2023 00:15:08 +0530 Subject: [PATCH] Fixed Issue: #2 --- login/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/login/urls.py b/login/urls.py index 7b966ff..50da6e6 100644 --- a/login/urls.py +++ b/login/urls.py @@ -5,6 +5,6 @@ urlpatterns = [ url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'), - url(r'^login/$', auth_views.login, {'template_name': 'login.html'}, name='login'), - url(r'^logout/$', auth_views.logout, {'template_name': 'logged_out.html'}, name='logout'), + url(r'^login/$', auth_views.LoginView, {'template_name': 'login.html'}, name='login'), + url(r'^logout/$', auth_views.LogoutView, {'template_name': 'logged_out.html'}, name='logout'), ]