changeset 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 a18516692273
children c525f3e0b5d0
files gpp/urls.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/urls.py	Sat May 05 14:49:42 2012 -0500
+++ b/gpp/urls.py	Sat May 05 14:59:20 2012 -0500
@@ -15,6 +15,12 @@
 urlpatterns = patterns('',
    url(r'^$', 'views.home', name='home'),
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
+
+   url(r'^admin/password_reset/$', 'django.contrib.auth.views.password_reset', name='admin_password_reset'),
+   (r'^admin/password_reset/done/$', 'django.contrib.auth.views.password_reset_done'),
+   (r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm'),
+   (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete'),
+
    (r'^admin/', include(admin.site.urls)),
    (r'^accounts/', include('accounts.urls')),
    (r'^antispam/', include('antispam.urls')),