Search code examples
pythondjangodjango-2.1

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


Solution

  • 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.