I am trying to amend the password rest form from django-registration to include a hyperlink. I used the exact same code for the activation_email.html but it is not working for the password_reset_email.html. The generated email is printing all of the html tags like < p >. What am I missing?
Below is the code for the password_reset_email.html:
{% load i18n %}
<!doctype html>
<html lang="en">
{% blocktrans %}Hello,{% endblocktrans %}
{% blocktrans %}
To reset your password, please click the following link:
{% endblocktrans %}
<body>
<p>
<a href="http://{{site.domain}}{% url 'auth_password_reset_confirm' uid token %}">
Reset password
</a>
</p>
</body>
{% blocktrans %}
If you do not wish to reset your password, please ignore this message.
{% endblocktrans %}
{% blocktrans %}Thanks,{% endblocktrans %}
{% blocktrans %}Management Team{% endblocktrans %}
{# This is used by django.contrib.auth #}
Here is the code for activation_email.html for comparison. This generates the correct result.
{% load i18n %}
<!doctype html>
<html lang="en">
<head>
<title>{{ site.name }} {% trans "registration" %}</title>
</head>
<body>
<p>
{% blocktrans with site_name=site.name %}
Hello!
</p>
<p>
We're ready to activate your account. All we need to do is make sure this is your email address.
{% endblocktrans %}
</p>
<p>
<a href="http://{{site.domain}}{% url 'registration_activate' activation_key %}">
Confirm email
</a>
</p>
<p>
{% blocktrans %}
If you didn't create a account, please just delete this email.
{% endblocktrans %}
</p>
</body>
</html>