Ticket #16789: named_auth_urls_ticket16789.diff

File named_auth_urls_ticket16789.diff, 2.0 KB (added by wim@…, 13 years ago)

add names to auth/urls.py

  • django/contrib/auth/urls.py

     
    22# provided as a convenience to those who want to deploy these URLs elsewhere.
    33# This file is also used to provide a reliable view deployment for test purposes.
    44
    5 from django.conf.urls.defaults import *
     5from django.conf.urls.defaults import patterns, url
    66
    77urlpatterns = patterns('',
    8     (r'^login/$', 'django.contrib.auth.views.login'),
    9     (r'^logout/$', 'django.contrib.auth.views.logout'),
    10     (r'^password_change/$', 'django.contrib.auth.views.password_change'),
    11     (r'^password_change/done/$', 'django.contrib.auth.views.password_change_done'),
    12     (r'^password_reset/$', 'django.contrib.auth.views.password_reset'),
    13     (r'^password_reset/done/$', 'django.contrib.auth.views.password_reset_done'),
    14     (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'),
    15     (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete'),
     8    url(r'^login/$', 'django.contrib.auth.views.login', name='login'),
     9    url(r'^logout/$', 'django.contrib.auth.views.logout', name='logout'),
     10    url(r'^password_change/$', 'django.contrib.auth.views.password_change', name='password_change'),
     11    url(r'^password_change/done/$', 'django.contrib.auth.views.password_change_done', name='password_change_done'),
     12    url(r'^password_reset/$', 'django.contrib.auth.views.password_reset', name='password_reset'),
     13    url(r'^password_reset/done/$', 'django.contrib.auth.views.password_reset_done', name='password_reset_done'),
     14    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', name='password_reset_confirm'),
     15    url(r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete', name='password_reset_complete'),
    1616)
    1717
Back to Top