I'm trying to implement Django 1.0.2's "Forgot Password" feature. I've
got far enough that http://127.0.0.1:8000/password_reset/ displays a
form asking for my email address. So far, so good. However, once I
submit the email address for my (django) account I get a
TemplateSyntaxError:
Here is the error message:
-----------------------------------------------------------------------------------------------
TemplateSyntaxError at /password_reset/
Caught an exception while rendering: new_password
And here is the (default) Template Code:
-----------------------------------------------------------------------------------------------
Template error:
In template /home/matt/Web/django_projects/mpmain/templates/
registration/password_reset_email.html, error at line 5
Caught an exception while rendering: new_password
1 : {% load i18n %}
2 : {% trans "You're receiving this e-mail because you requested a
password reset" %}
3 : {% blocktrans %}for your user account at {{ site_name }}{%
endblocktrans %}.
4 :
5 : {% blocktrans %} Your new password is: {{ new_password }}{%
endblocktrans %}
6 :
7 : {% trans "Feel free to change this password by going to this
page:" %}
8 :
9 : http://{{ domain }}/password_change/
10 :
11 : {% trans "Your username, in case you've forgotten:" %}
{{ user.username }}
12 :
13 : {% trans "Thanks for using our site!" %}
14 :
15 : {% blocktrans %}The {{ site_name }} team{% endblocktrans %}
The exact line that seems to be throwing the exception is line #5:
5 : {% blocktrans %} Your new password is: {{ new_password }}{%
endblocktrans %}
Anyone got any clues for me?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---