Mercurial > public > sg101
comparison accounts/urls.py @ 752:95f4e7f352fd
For Django 1.6: contrib auth password reset confirm view signature changed.
The uidb64 parameter was previously base 36 encoded and named uidb36.
Had to update urls.py. While I was in there I decided to make the
password reset email use the {% url %} tag to be more resilient if the
url changes.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 01 Jan 2014 19:52:07 -0600 |
parents | 4a49d4ac319f |
children | be233ba7ca31 |
comparison
equal
deleted
inserted
replaced
751:22fb12361fb3 | 752:95f4e7f352fd |
---|---|
30 name='accounts-password_reset'), | 30 name='accounts-password_reset'), |
31 url(r'^password/reset/sent/$', | 31 url(r'^password/reset/sent/$', |
32 'django.contrib.auth.views.password_reset_done', | 32 'django.contrib.auth.views.password_reset_done', |
33 kwargs={'template_name': 'accounts/password_reset_sent.html'}, | 33 kwargs={'template_name': 'accounts/password_reset_sent.html'}, |
34 name='accounts-password_reset_sent'), | 34 name='accounts-password_reset_sent'), |
35 url(r'^password/reset/confirm/(?P<uidb36>[0-9a-z]+)/(?P<token>[0-9a-z]+-\w+)/$', | 35 url(r'^password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9a-z]+-\w+)/$', |
36 'django.contrib.auth.views.password_reset_confirm', | 36 'django.contrib.auth.views.password_reset_confirm', |
37 kwargs={ | 37 kwargs={ |
38 'template_name': 'accounts/password_reset_confirm.html', | 38 'template_name': 'accounts/password_reset_confirm.html', |
39 'post_reset_redirect': '/accounts/password/reset/success/', | 39 'post_reset_redirect': '/accounts/password/reset/success/', |
40 }, | 40 }, |