I have successfully added my own custom HTML templates for the password reset pages in Django and it’s all working nicely. The only bit I can’t work out it how to include my own email subject.
The default is “Password reset on [my site name]” and I can obviously change the site name in admin but does anyone know how to override the whole subject line?
Thanks.
Development Version
Just create new file
registration/password_reset_subject.txtin your templates dir. This will override default django subjectSee https://github.com/django/django/blob/master/django/contrib/auth/templates/registration/password_reset_subject.txt
and https://github.com/django/django/blob/master/django/contrib/auth/forms.py line 150
In Django 1.3
if you use internalization just add in
.pofileif not folow next steps
in root urls.py
in your your_app/views.py
rewrite save method in your your_app/forms.py (I know it not DRY but should work 🙂