我试图设计django的内置忘记密码注册,以删除通用的Django绿色主题,并自己定制它们。但我无法做到这一点。
这是注册/ password_reset_form.html,我的页眉和页脚有我的bootstrap和自定义css文件。但它们没有反映在模板中。我仍然看到默认的django样式。
{% include "meddy1/header.html" %}
{% load staticfiles %}
{% block title %}Reset Password{% endblock %}
<p>Please specify your email address to receive instructions for resetting it.</p>
<form action="" method="post">
<div style="display:none">
<input type="hidden" value="{{ csrf_token }}" name="csrfmiddlewaretoken">
</div>
{{ form.email.errors }}
<p><label for="id_email">E-mail address:</label> {{ form.email }} <input type="submit" value="Reset password" /></p>
</form>
{% include "meddy1/footer.html" %}