'Does PasswordResetConfirmView.py auto populate uid and token?

The view definitely does not populate on my end but password_reset_confirm.html in the demo template folder seems to do that.

password_reset_confirm_form.html

image

urls.py

    path("dj-rest-auth/password/reset/confirm/<str:uid>/<str:token>/",
        # TemplateView.as_view(template_name="password_reset_confirm.html"),
        PasswordResetConfirmView.as_view(),
         name='resend-email-verification'
    ),  

Edit: maybe this webpage here is not the same page in django-rest-auth demo folder.



Solution 1:[1]

In django, it is defined as (in django code):

urls.py

path('reset/<uidb64>/<token>/',views.PasswordResetConfirmView.as_view(),name='password_reset_confirm'),
path('reset/done/',views.PasswordResetCompleteView.as_view(),name='password_reset_complete')

Then, you can customize according to your need and override it by inheriting it in your own views.py file.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1