| 1 |
# The views used below are normally mapped in the AdminSite instance. |
| 2 |
# This URLs file is used to provide a reliable view deployment for test purposes. |
| 3 |
# It is also provided as a convenience to those who want to deploy these URLs |
| 4 |
# elsewhere. |
| 5 |
|
| 6 |
from django.contrib.auth import views |
| 7 |
from django.urls import path |
| 8 |
|
| 9 |
urlpatterns = [ |
| 10 |
path("login/", views.LoginView.as_view(), name="login"), |
| 11 |
path("logout/", views.LogoutView.as_view(), name="logout"), |
| 12 |
path( |
| 13 |
"password_change/", views.PasswordChangeView.as_view(), name="password_change" |
| 14 |
), |
| 15 |
path( |
| 16 |
"password_change/done/", |
| 17 |
views.PasswordChangeDoneView.as_view(), |
| 18 |
name="password_change_done", |
| 19 |
), |
| 20 |
path("password_reset/", views.PasswordResetView.as_view(), name="password_reset"), |
| 21 |
path( |
| 22 |
"password_reset/done/", |
| 23 |
views.PasswordResetDoneView.as_view(), |
| 24 |
name="password_reset_done", |
| 25 |
), |
| 26 |
path( |
| 27 |
"reset/<uidb64>/<token>/", |
| 28 |
views.PasswordResetConfirmView.as_view(), |
| 29 |
name="password_reset_confirm", |
| 30 |
), |
| 31 |
path( |
| 32 |
"reset/done/", |
| 33 |
views.PasswordResetCompleteView.as_view(), |
| 34 |
name="password_reset_complete", |
| 35 |
), |
| 36 |
] |