{% extends "base.html" %} {% load i18n %} {% load crispy_forms_tags %} {% block title %}{% trans "Register for an account" %}{% endblock %} {% block content %}
{# pulralize 是filter,用来判断是否为添加's'来表示单词的复数形式#} Please correct the error{{ form.errors|pluralize }} below. {{ form.non_field_errors }}
{{ field.help_text|safe }}
{% if not field.is_readonly %} {% for error in field.errors %}{{ error }}{% endfor %} {% endif %}