Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django override password_reset_subject.txt does not change subject

I created registration/password_reset_subject.txt to change the subject of my password reset email as suggested here. However, it does not take effect.

The email subject remains Subject: Password reset on 127.0.0.1:8000

like image 877
ohlr Avatar asked Jan 01 '26 07:01

ohlr


1 Answers

Found the answer myself.

I got it to work by placing registration/password_reset_subject.txt in a global template folder.

It is also possible to place registration/password_reset_subject.txt in the template folder of a submodule. However, for this to work the module must come before 'django.contrib.auth' in the INSTALLED_APPS.

like image 93
ohlr Avatar answered Jan 02 '26 20:01

ohlr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!