According to Django’s password_reset view, it
Allows a user to reset their password
by generating a one-time use link that
can be used to reset the password, and
sending that link to the user’s
registered e-mail address.
with the email being generated by a user-supplied template. What I can’t find is the name of the link variable to use in the email-template (and it’s not {{ link }} 🙂
In the django-registration app, for instance, it’s {{ activation_key }}.
I even ran {% debug %} in my template to look at all the variables, and nothing looked obvious. Also, this is Django 1.2, not the development version.
Update: my template looks like:
{{ protocol }}://localhost:8000{% url django.contrib.auth.views.password_reset_confirm uidb36=uid token=token %}
Click on the link (or copy/paste into your browser), and then you can change your password
And gives me the result (in a text file simulating email):
http://localhost:8000/accounts/password/reset/confirm/12-2ws-1c60be00955ea4=
a7a62e/
Click on the link (or copy/paste into your browser), and then you can chang=
e your password
Take a look at the default
password_reset_email.htmlThis is what generates the link:
edit:
for version 1.2:
which doesn’t quote the view.
There is a note about this revision stating:
Revision 12889, 617 bytes checked in by russellm, 13 months ago (diff)
Here is a note about changes with the url tag:
http://docs.djangoproject.com/en/dev/releases/1.3/#changes-to-url-and-ssi