标签云

微信群

扫码加入我们

WeChat QR Code

I am trying to use django-password-reset (https://pypi.python.org/pypi/django-password-reset/0.2) to allow users recovering their passwords.django-password-reset provides a form where the user can enter their username or email address, and tries to find one of those in the database.In my project, the user has no username field - only the email field.Thus, I need to make it search users by the 'email' field only, and not by the 'username' field, which does not exist in my system.The projects documentation says there are attributes to change this behavior:http://django-password-reset.readthedocs.org/en/latest/views.html.However, I simply cannot find out how to set these attributes.Can someone help?


That worked! I was missing the URLs. However, I applied to smaller fixes to the code (see edit). Hope the changes will be applied.

2019年07月24日34分53秒

Thanks for your answer. However, I would like to avoid direct changes in the django-password-reset code, as I want to deploy the system on another machine without having to make the same changes again there.

2019年07月24日34分53秒