【发布时间】:2014-02-14 23:06:02
【问题描述】:
我正在使用 Django 1.6。 我在 myApp/templates/registration/password_reset_email.html 中有以下文件。
但是,当我在表单中输入我的电子邮件地址以发送重置密码电子邮件时,我收到以下错误:
TemplateSyntaxError at /auth/password_reset/
Could not parse the remainder: ',' from 'uid,'
下面的模板有什么问题导致 {% url %} 标签失败?
{% autoescape off %}
You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}.
Please go to the following page and choose a new password:
{% block reset_link %}
{{ protocol }}://{{ domain }}{% url django.contrib.auth.views.password_reset_confirm uidb36=uid, token=token %}
{% endblock %}
Your username, in case you've forgotten: {{ user.username }}
Thanks for using our site!
The {{ site_name }} team.
{% endautoescape %}
【问题讨论】:
标签: django