Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4558992
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:43:34+00:00 2026-05-21T17:43:34+00:00

According to Django’s password_reset view, it Allows a user to reset their password by

  • 0

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T17:43:35+00:00Added an answer on May 21, 2026 at 5:43 pm

    Take a look at the default password_reset_email.html

    http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/templates/registration/password_reset_email.html
    

    This is what generates the link:

    {{ protocol }}://{{ domain }}{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %}
    

    edit:

    for version 1.2:

    http://code.djangoproject.com/browser/django/branches/releases/1.2.X/django/contrib/admin/templates/registration/password_reset_email.html?rev=15606
    

    which doesn’t quote the view.

    {{ protocol }}://{{ domain }}{% url django.contrib.auth.views.password_reset_confirm uidb36=uid token=token %}
    

    There is a note about this revision stating:

    Revision 12889, 617 bytes checked in by russellm, 13 months ago (diff)

    Fixed #12945 — Corrected the parsing
    of arguments in {% url %} when the
    argument list has spaces between
    commas. This is a revised version of
    r12503, which was a fix for #12072.
    Thanks to SmileyChris? for the patch,
    and to dmoisset for finding all the
    places in the docs that the old style
    syntax was used.

    Here is a note about changes with the url tag:

    http://docs.djangoproject.com/en/dev/releases/1.3/#changes-to-url-and-ssi

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to this section in the Django docs I should use {% blocktrans %}
I'm using django.views.generic.list_detail.object_detail. According to the documentation the view takes the variable object_id. To
I need to use SHORT_DATETIME_FORMAT in view. def manage_list(request): user = User.objects.filter().order_by('date_joined') usrs =
I'm trying to use Django transactions on MySQL with the commit_on_success decorator . According
When writing django queries one can use both id/pk as query parameters. Object.objects.get(id=1) Object.objects.get(pk=1)
According to Django documentation, if SESSION_EXPIRE_AT_BROWSER_CLOSE is set to True, Django will use browser-length
According to what I have found so far, I can use the following code:
Django 1.2 has brought in some changes in the syndication framework. According to this
According to The Django Book , Django's templating system supports nested dot lookups: Dot
According to the Django testing docs, the Django client Response object contains 'templates', which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.