{% extends "accounts/base.html" %} {% block title %}Change Password{% endblock %} {% block content %}
Enter your old password and a new one below.
{# ✅ ERROR BLOCK GOES HERE — directly above the form #} {% if form.errors and request.method == 'POST' %}{{ field.label }}: {{ error }}
{% endfor %} {% endfor %} {% for error in form.non_field_errors %}{{ error }}
{% endfor %}