{% extends "base.html" %} {% block body %}
{{ form.csrf_token }}
{% if form.username.errors %}
    {% for error in form.username.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %} {{ form.username(class='form-control',placeholder='username') }}
{% if form.password.errors %}
    {% for error in form.password.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %} {{ form.password(class='form-control',placeholder='password') }}
{% if form.password2.errors %}
    {% for error in form.password2.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %} {{ form.password2(class='form-control',placeholder='confirm password') }}
{{ form.submit(class='btn btn-primary btn-block') }}
{% endblock %}