Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 4: unable to send e-mail address to reset password #98

Open
Marcial2 opened this issue Sep 2, 2021 · 0 comments
Open

Chapter 4: unable to send e-mail address to reset password #98

Marcial2 opened this issue Sep 2, 2021 · 0 comments

Comments

@Marcial2
Copy link

Marcial2 commented Sep 2, 2021

I am getting this exception when I enter an email address for password reset:

NoReverseMatch at /account/password_reset/
Error during template rendering

In template /home/marcia/django3/bookmarks/account/templates/registration/password_reset_email.html, error at line 2
Reverse for 'password_reset_confirm' with keyword arguments '{'uibd64': 'Mg', 'token': 'asbpl2-647b4e4a43445b4f0062656965947400'}' not found. 1 pattern(s) tried: ['account/reset/confirm/(?P[^/]+)/(?P[^/]+)/$']

I am using this path in account/urls.py:
path('reset///', auth_views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'),

Here is my password reset html:
Someone asked for password reset for email {{ email }}. Follow the link below:
{{ protocol }}://{{ domain }}{% url "password_reset_confirm" uibd64=uid token=token %}
Your username, in case you've forgotten: {{ user.get_username }}

It seems to the the html does in fact match the url path, but - despite many tries - I have not been able to make this work.
Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant