2020-06-10 14:39:09 +08:00
|
|
|
# The views used below are normally mapped in the AdminSite instance.
|
2011-09-25 03:48:27 +08:00
|
|
|
# This URLs file is used to provide a reliable view deployment for test purposes.
|
|
|
|
# It is also provided as a convenience to those who want to deploy these URLs
|
|
|
|
# elsewhere.
|
2008-06-30 21:11:12 +08:00
|
|
|
|
2014-04-02 08:46:34 +08:00
|
|
|
from django.contrib.auth import views
|
2016-10-21 01:29:04 +08:00
|
|
|
from django.urls import path
|
2008-06-30 21:11:12 +08:00
|
|
|
|
2014-04-02 08:46:34 +08:00
|
|
|
urlpatterns = [
|
2016-10-21 01:29:04 +08:00
|
|
|
path("login/", views.LoginView.as_view(), name="login"),
|
|
|
|
path("logout/", views.LogoutView.as_view(), name="logout"),
|
|
|
|
path(
|
|
|
|
"password_change/", views.PasswordChangeView.as_view(), name="password_change"
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"password_change/done/",
|
|
|
|
views.PasswordChangeDoneView.as_view(),
|
|
|
|
name="password_change_done",
|
|
|
|
),
|
|
|
|
path("password_reset/", views.PasswordResetView.as_view(), name="password_reset"),
|
|
|
|
path(
|
|
|
|
"password_reset/done/",
|
|
|
|
views.PasswordResetDoneView.as_view(),
|
|
|
|
name="password_reset_done",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"reset/<uidb64>/<token>/",
|
|
|
|
views.PasswordResetConfirmView.as_view(),
|
|
|
|
name="password_reset_confirm",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"reset/done/",
|
|
|
|
views.PasswordResetCompleteView.as_view(),
|
|
|
|
name="password_reset_complete",
|
2022-02-04 03:24:19 +08:00
|
|
|
),
|
2014-04-02 08:46:34 +08:00
|
|
|
]
|