Skip to content
Advertisement

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

JavaScript

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

Advertisement

Answer

Answer credits to GitHub user, riteshbisht.

What I am seeing is UI of browsable API of django rest framework that does not have this functionality for reading url and populating form field unless I tell it to.

For it to do this, I created templates/rest_framework/api.html file and inserted following code inside it:

api.html

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement