Skip to content

Commit 0564dce

Browse files
authored
Update urls.py
1 parent 3589269 commit 0564dce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

multichat/multichat/urls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from django.urls import path
22
from django.contrib import admin
3-
from django.contrib.auth.views import login, logout
3+
from django.contrib.auth.views import LoginView, LogoutView
44
from chat.views import index
55

66

77
urlpatterns = [
88
path('', index),
9-
path('accounts/login/', login),
10-
path('accounts/logout/', logout),
9+
path('accounts/login/', LoginView.as_view(), name='login'),
10+
path('accounts/logout/', LogoutView.as_view(), name='logout'),
1111
path('admin/', admin.site.urls),
1212
]

0 commit comments

Comments
 (0)