{% extends "base.html" %}

{% block title %}Change password{% endblock %}

{% block content %}

<div class="container">
  <h1>Account</h1>

  <form method="post" action="{% url 'django.contrib.auth.views.password_change' %}">
    {% csrf_token %}
    <h4 class="form-signin-heading">Change password for {{ user.username }}</h4>
    <label>
      {{ form.old_password.label_tag }}
      {{ form.old_password.errors }}
      {{ form.old_password }}
    </label>
    <label>
      {{ form.new_password1.label_tag }}
      {{ form.new_password1.errors }}
      {{ form.new_password1 }}
    </label>
    <label>
      {{ form.new_password2.label_tag }}
      {{ form.new_password2.errors }}
      {{ form.new_password2 }}
    </label>
    <button class="btn btn-large btn-primary" type="submit">Change password</button>
    <input type="hidden" name="next" value="{{ next }}" />
  </form>
</div>
{% endblock %}

{% extends "base.html" %}

{% block title %}Change password{% endblock %}

{% block content %}

<div class="container">
  <h1>Account</h1>

  <a class="btn" href="{% url 'django.contrib.auth.views.logout' %}">Log out</a>

  <form method="post" action="{% url 'django.contrib.auth.views.password_change' %}">
    {% csrf_token %}
    <h4 class="form-signin-heading">Change password for {{ user.username }}</h4>
    <label>
      {{ form.old_password.label_tag }}
      {{ form.old_password.errors }}
      {{ form.old_password }}
    </label>
    <label>
      {{ form.new_password1.label_tag }}
      {{ form.new_password1.errors }}
      {{ form.new_password1 }}
    </label>
    <label>
      {{ form.new_password2.label_tag }}
      {{ form.new_password2.errors }}
      {{ form.new_password2 }}
    </label>
    <button class="btn btn-large btn-primary" type="submit">Change password</button>
    <input type="hidden" name="next" value="{{ next }}" />
  </form>
</div>
{% endblock %}

Add logout button to accounts page
Add logout button to accounts page
