-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathurls.py
21 lines (15 loc) · 941 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from django.contrib.auth import views as auth_views
from django.urls import path
from . import views
urlpatterns = [
path('signup/', views.signup, name='signup'),
path('login/', auth_views.LoginView.as_view(template_name='accounts/login.html'), name='login'),
path('logout/', auth_views.LogoutView.as_view(), name='logout'),
path('profile/', views.profile, name='profile'),
path('profile/edit/', views.profile_edit, name='profile_edit'),
path('password_change/', views.MyPasswordChangeView.as_view(), name='password_change'),
# path('login/url/', views.RequestLoginViaUrlView.as_view(), name='request_login_via_url'),
# path('login/<uidb64>/<token>/', views.login_via_url, name='login_via_url'),
# path('password_reset/', views.MyPasswordResetView.as_view(), name='password_reset'),
# path('reset/<uidb64>/<token>/', views.MyPasswordResetConfirmView.as_view(), name='password_reset_confirm'),
]