私はDjango forgot_password
フレームワークをカスタムテンプレートと併用しています。私はDjango 1.5
を使用しています。マイカスタムテンプレートpassword_reset_email.html
は次のようになります。Djangoテンプレートエラー:残りを解析できませんでした: '、'から 'uid、'?
{% 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 %}
#Exception:
Exception Type: TemplateSyntaxError at /accounts/password/reset/
Exception Value: Could not parse the remainder: ',' from 'uid,'
はい、それは!!!!! – pynovice