Mercurial > public > sg101
comparison gpp/urls.py @ 579:217a6319278c
For Django 1.4, added the admin password reset feature.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 May 2012 14:59:20 -0500 |
parents | ddd69a8e07c7 |
children | c525f3e0b5d0 |
comparison
equal
deleted
inserted
replaced
578:a18516692273 | 579:217a6319278c |
---|---|
13 admin.autodiscover() | 13 admin.autodiscover() |
14 | 14 |
15 urlpatterns = patterns('', | 15 urlpatterns = patterns('', |
16 url(r'^$', 'views.home', name='home'), | 16 url(r'^$', 'views.home', name='home'), |
17 (r'^admin/doc/', include('django.contrib.admindocs.urls')), | 17 (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
18 | |
19 url(r'^admin/password_reset/$', 'django.contrib.auth.views.password_reset', name='admin_password_reset'), | |
20 (r'^admin/password_reset/done/$', 'django.contrib.auth.views.password_reset_done'), | |
21 (r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm'), | |
22 (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete'), | |
23 | |
18 (r'^admin/', include(admin.site.urls)), | 24 (r'^admin/', include(admin.site.urls)), |
19 (r'^accounts/', include('accounts.urls')), | 25 (r'^accounts/', include('accounts.urls')), |
20 (r'^antispam/', include('antispam.urls')), | 26 (r'^antispam/', include('antispam.urls')), |
21 (r'^calendar/', include('gcalendar.urls')), | 27 (r'^calendar/', include('gcalendar.urls')), |
22 (r'^comments/', include('comments.urls')), | 28 (r'^comments/', include('comments.urls')), |