summaryrefslogtreecommitdiff
path: root/lib/python2.7/site-packages/django/contrib/auth/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/site-packages/django/contrib/auth/urls.py')
-rw-r--r--lib/python2.7/site-packages/django/contrib/auth/urls.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/python2.7/site-packages/django/contrib/auth/urls.py b/lib/python2.7/site-packages/django/contrib/auth/urls.py
new file mode 100644
index 0000000..801d133
--- /dev/null
+++ b/lib/python2.7/site-packages/django/contrib/auth/urls.py
@@ -0,0 +1,22 @@
+# 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.
+
+from django.conf.urls import patterns, url
+
+urlpatterns = patterns('',
+ url(r'^login/$', 'django.contrib.auth.views.login', name='login'),
+ url(r'^logout/$', 'django.contrib.auth.views.logout', name='logout'),
+ url(r'^password_change/$', 'django.contrib.auth.views.password_change', name='password_change'),
+ url(r'^password_change/done/$', 'django.contrib.auth.views.password_change_done', name='password_change_done'),
+ url(r'^password_reset/$', 'django.contrib.auth.views.password_reset', name='password_reset'),
+ url(r'^password_reset/done/$', 'django.contrib.auth.views.password_reset_done', name='password_reset_done'),
+ # Support old style base36 password reset links; remove in Django 1.7
+ url(r'^reset/(?P<uidb36>[0-9A-Za-z]{1,13})-(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
+ 'django.contrib.auth.views.password_reset_confirm_uidb36'),
+ url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
+ 'django.contrib.auth.views.password_reset_confirm',
+ name='password_reset_confirm'),
+ url(r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete', name='password_reset_complete'),
+)