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.conf.urls import url
|
|
|
|
from django.contrib.auth import views
|
2008-06-30 21:11:12 +08:00
|
|
|
|
2014-04-02 08:46:34 +08:00
|
|
|
urlpatterns = [
|
2016-05-15 23:28:00 +08:00
|
|
|
url(r'^login/$', views.LoginView.as_view(), name='login'),
|
|
|
|
url(r'^logout/$', views.LogoutView.as_view(), name='logout'),
|
2013-04-10 05:31:58 +08:00
|
|
|
|
|
|
|
url(r'^password_change/$', views.PasswordChangeView.as_view(), name='password_change'),
|
|
|
|
url(r'^password_change/done/$', views.PasswordChangeDoneView.as_view(), name='password_change_done'),
|
|
|
|
|
|
|
|
url(r'^password_reset/$', views.PasswordResetView.as_view(), name='password_reset'),
|
|
|
|
url(r'^password_reset/done/$', views.PasswordResetDoneView.as_view(), name='password_reset_done'),
|
2013-06-22 04:59:33 +08:00
|
|
|
url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
|
2013-04-10 05:31:58 +08:00
|
|
|
views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
|
|
|
|
url(r'^reset/done/$', views.PasswordResetCompleteView.as_view(), name='password_reset_complete'),
|
2014-04-02 08:46:34 +08:00
|
|
|
]
|