Mercurial > public > madeira
changeset 69:4fc5dfe04b30
For Django 1.4, add a password reset feature to the admin.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 14 Apr 2012 14:55:14 -0500 |
parents | 0f8ad2d97cda |
children | f26cdda0ad8b |
files | madeira/urls.py |
diffstat | 1 files changed, 21 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/madeira/urls.py Sat Apr 14 14:37:21 2012 -0500 +++ b/madeira/urls.py Sat Apr 14 14:55:14 2012 -0500 @@ -7,19 +7,27 @@ admin.autodiscover() urlpatterns = patterns('', - url(r'^$', - TemplateView.as_view(template_name='index.html'), - name='home'), - (r'^', include('band.urls')), - (r'^gigs/', include('gigs.urls')), - (r'^mail/', include('email_list.urls')), - (r'^news/', include('news.urls')), - (r'^press/', include('articles.urls')), - (r'^songs/', include('mp3.urls')), - (r'^videos/', include('videos.urls')), - (r'^admin/doc/', include('django.contrib.admindocs.urls')), - (r'^admin/', include(admin.site.urls)), - (r'^photologue/', include('photologue.urls')), + url(r'^$', + TemplateView.as_view(template_name='index.html'), + name='home'), + (r'^', include('band.urls')), + (r'^gigs/', include('gigs.urls')), + (r'^mail/', include('email_list.urls')), + (r'^news/', include('news.urls')), + (r'^press/', include('articles.urls')), + (r'^songs/', include('mp3.urls')), + (r'^videos/', include('videos.urls')), + (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'^photologue/', include('photologue.urls')), ) # For serving media files in development only: