I’m using the generic view django.contrib.auth.views.password_reset for the password reset form. In principle, it all works, except that the subject line of the email that’s sent out contains ‘example.com’, as in: “Password reset on example.com”.
So I have looked around, but for the life of me I cannot find out how I can change this to contain my actual domain name.
Any ideas?
The
PasswordResetFormsends the email based on yourcontrib.sites. It gets the domain name to use and passes it to the html template atregistration/password_reset_email.htmldjango/trunk/django/contrib/auth/forms.py:
use admin or django shell to change the
siteread more about the sites framework
here.in shell you can do this by doing:
in your settings.py:
or
in your settings.py: