Password Reset Problem

94 views
Skip to first unread message

Jeremiah Malina

unread,
Jun 13, 2011, 11:18:38 AM6/13/11
to Django users
Hello,

I'm a bit new to django but I thought I had a grasp on things until I
encountered this bug:

Template error:
In template /Users/jmalina/Sites/mysite/templates/account/
password_reset/password_reset_email.html, error at line 6
Caught NoReverseMatch while rendering: Reverse for '' with
arguments '()' and keyword arguments '{'uidb36': '3', 'token': '2xz-
d19b02c82b362d09395a'}' not found.'

I'm trying to use Django's built in password reset feature with my own
templates, but something is hanging up when the reset password email
is generated.

Here is my email template: http://dpaste.com/553684/
Here is my urlconf: http://dpaste.com/553687/

Anyone run into this problem before?

Thanks,

Jeremiah

Daniel Roseman

unread,
Jun 13, 2011, 11:44:53 AM6/13/11
to django...@googlegroups.com
Your email template refers to the url 'django.contrib.auth.views.password_reset_confirm' but you're not using that in your urls.py - you have 'accounts.views.reset_password_confirm'. 
--
DR.

Jeremiah Malina

unread,
Jun 13, 2011, 11:52:37 AM6/13/11
to django...@googlegroups.com
Daniel,

reset_password_confirm is my own view method in views.py which I'm using because I have jinja2 as the template engine and it renders templates with a different method

Jeremiah

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/hepahBhJLZAJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



Daniel Roseman

unread,
Jun 13, 2011, 11:56:37 AM6/13/11
to django...@googlegroups.com
On Monday, June 13, 2011 4:52:37 PM UTC+1, Jeremiah Malina wrote:
Daniel,

reset_password_confirm is my own view method in views.py which I'm using because I have jinja2 as the template engine and it renders templates with a different method

Jeremiah

Fine, but then you need to update the {% url %} tag in your template. 
--
DR.

Reply all
Reply to author
Forward
0 new messages