# HG changeset patch # User Brian Neal # Date 1388627527 21600 # Node ID 95f4e7f352fd6e401ad4cafdd878e6ab39416463 # Parent 22fb12361fb30fbf96d749b3c8b2018177bf8da0 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. diff -r 22fb12361fb3 -r 95f4e7f352fd accounts/urls.py --- a/accounts/urls.py Tue Dec 31 17:21:11 2013 -0600 +++ b/accounts/urls.py Wed Jan 01 19:52:07 2014 -0600 @@ -32,7 +32,7 @@ 'django.contrib.auth.views.password_reset_done', kwargs={'template_name': 'accounts/password_reset_sent.html'}, name='accounts-password_reset_sent'), - url(r'^password/reset/confirm/(?P[0-9a-z]+)/(?P[0-9a-z]+-\w+)/$', + url(r'^password/reset/confirm/(?P[0-9A-Za-z_\-]+)/(?P[0-9a-z]+-\w+)/$', 'django.contrib.auth.views.password_reset_confirm', kwargs={ 'template_name': 'accounts/password_reset_confirm.html', diff -r 22fb12361fb3 -r 95f4e7f352fd sg101/templates/accounts/password_reset_email.txt --- a/sg101/templates/accounts/password_reset_email.txt Tue Dec 31 17:21:11 2013 -0600 +++ b/sg101/templates/accounts/password_reset_email.txt Wed Jan 01 19:52:07 2014 -0600 @@ -4,7 +4,7 @@ If you did request a password reset, please visit the following link, where you will be able to enter your new password: -{{ protocol }}://{{ domain }}/accounts/password/reset/confirm/{{ uid }}/{{ token }}/ +{{ protocol }}://{{ domain }}{% url 'accounts-password_reset_confirm' uidb64=uid token=token %} Regards,