-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathurls.py
30 lines (27 loc) · 1.5 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from django.urls import path
from admin_berry import views
from django.contrib.auth import views as auth_views
urlpatterns = [
path('', views.index),
path('typography/', views.typography, name='typography'),
path('color/', views.color, name='color'),
path('icon-tabler/', views.icon_tabler, name='icon_tabler'),
path('sample-page/', views.sample_page, name='sample_page'),
# Authentication
path('accounts/login/', views.UserLoginView.as_view(), name='login'),
path('accounts/logout/', views.user_logout_view, name='logout'),
path('accounts/register/', views.registration, name='register'),
path('accounts/password-change/', views.UserPasswordChangeView.as_view(), name='password_change'),
path('accounts/password-change-done/', auth_views.PasswordChangeDoneView.as_view(
template_name='accounts/password_change_done.html'
), name="password_change_done" ),
path('accounts/password-reset/', views.UserPasswordResetView.as_view(), name='password_reset'),
path('accounts/password-reset-confirm/<uidb64>/<token>/',
views.UserPasswordResetConfirmView.as_view(), name='password_reset_confirm'),
path('accounts/password-reset-done/', auth_views.PasswordResetDoneView.as_view(
template_name='accounts/password_reset_done.html'
), name='password_reset_done'),
path('accounts/password-reset-complete/', auth_views.PasswordResetCompleteView.as_view(
template_name='accounts/password_reset_complete.html'
), name='password_reset_complete'),
]