2011-09-25 03:48:27 +08:00
|
|
|
# The views used below are normally mapped in django.contrib.admin.urls.py
|
|
|
|
# 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'),
|
2013-04-10 05:31:58 +08:00
|
|
|
|
2016-10-21 01:29:04 +08:00
|
|
|
path('password_change/', views.PasswordChangeView.as_view(), name='password_change'),
|
|
|
|
path('password_change/done/', views.PasswordChangeDoneView.as_view(), name='password_change_done'),
|
2013-04-10 05:31:58 +08:00
|
|
|
|
2016-10-21 01:29:04 +08:00
|
|
|
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'),
|
2014-04-02 08:46:34 +08:00
|
|
|
]
|