urls.py 1.2 KB

12345678910111213141516171819
  1. # The views used below are normally mapped in django.contrib.admin.urls.py
  2. # This URLs file is used to provide a reliable view deployment for test purposes.
  3. # It is also provided as a convenience to those who want to deploy these URLs
  4. # elsewhere.
  5. from django.conf.urls import patterns, url
  6. urlpatterns = patterns('',
  7. url(r'^login/$', 'django.contrib.auth.views.login', name='login'),
  8. url(r'^logout/$', 'django.contrib.auth.views.logout', name='logout'),
  9. url(r'^password_change/$', 'django.contrib.auth.views.password_change', name='password_change'),
  10. url(r'^password_change/done/$', 'django.contrib.auth.views.password_change_done', name='password_change_done'),
  11. url(r'^password_reset/$', 'django.contrib.auth.views.password_reset', name='password_reset'),
  12. url(r'^password_reset/done/$', 'django.contrib.auth.views.password_reset_done', name='password_reset_done'),
  13. url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
  14. 'django.contrib.auth.views.password_reset_confirm',
  15. name='password_reset_confirm'),
  16. url(r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete', name='password_reset_complete'),
  17. )