question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Password reset confirm view

See original GitHub issue

Hi I have an issue, which occured while testing password reset.

I am using the i18n demo. The first part is working fine: I can click the link, send a amail to my address and klick the link.

Then I run into a problem: When I click “Change my password”, nothing happens. The log shows follwoing error: grafik Which I do not understand because the follwing url is configured: url(r'^password-reset-confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/?$', PasswordResetConfirm.as_view(template_name='myshop/pages/password-reset-confirm.html'), name='password_reset_confirm'), Do I need to reconfigure something or forgot something, that my URL is not found?

Thanks for the help.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
markusmocommented, Oct 2, 2018
from django.conf.urls.i18n import i18n_patterns
…
i18n_urls = (
    url(r'^admin/', include(admin.site.urls)),
    url(r'^password-reset-confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/?$',
        PasswordResetConfirm.as_view(template_name='myshop/pages/password-reset-confirm.html'),
        name='password_reset_confirm'),
    url(r'^', include('cms.urls')),
)
…
urlpatterns.extend(i18n_patterns(*i18n_urls))

So I think, that its right. I guess, I simply could add the patterns one by one, but I don’t think that this will make a difference.

0reactions
mrhilicommented, Jun 25, 2020

For arabic speechers :

https://youtu.be/00IGJ85npqE

Read more comments on GitHub >

github_iconTop Results From Across the Web

Making a Reset Password Request With Django - Atufa Shireen
There's two things over there, first, it is trying to find a reverse for password-reset that is password_reset_confirm URL, and second that it ......
Read more >
django password reset password_reset_confirm
I implemented the password reset procedure with a bit different way, the bellow has been tested and works: in project urls.py:
Read more >
Reverse for 'password_reset_confirm' not found.
So I'm trying to use the default reset password form from django and this is my urls now: urls: path('reset_password/', auth_views.
Read more >
Django Password Reset Tutorial
Implement user authentication with a password reset for Django 4.0. ... be automatically routed to the Password reset confirmation page.
Read more >
How to Create a Password Reset View
password_reset_confirm: The link that was emailed to the user. This view will validate the token and display a password form if the token...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found