{% extends "base.html" %}
{% block body %}
<form action="{% url auth-login %}" method="POST" id="auth_form">
  <input type="hidden" name="next" value="{{ next }}">
  {% csrf_token %}

  <ol>
    <li>
      {% for error in form.username.errors %}
        <p class="error">{{ error }}</p>
      {% endfor %}
      {{ form.username.label_tag }}
      {{ form.username }}
    </li>

    <li>
      {% for error in form.password.errors %}
        <p class="error">{{ error }}</p>
      {% endfor %}
      {{ form.password.label_tag }}
      {{ form.password }}
    </li>

    <li class="submit">
      <input type="submit" value="Log in">
    </li>
  </ol>
</form>

<a href="{% url registration_register %}">Register</a>
<a href="{% url auth_password_reset %}">Forgot your password?</a>
{% endblock %}

{% extends "base.html" %}
{% block body %}
<form action="" method="POST" id="auth_form">
  <input type="hidden" name="next" value="{{ next }}">
  {% csrf_token %}

  <ol>
    <li>
      {% for error in form.username.errors %}
        <p class="error">{{ error }}</p>
      {% endfor %}
      {{ form.username.label_tag }}
      {{ form.username }}
    </li>

    <li>
      {% for error in form.password.errors %}
        <p class="error">{{ error }}</p>
      {% endfor %}
      {{ form.password.label_tag }}
      {{ form.password }}
    </li>

    <li class="submit">
      <input type="submit" value="Log in">
    </li>
  </ol>
</form>

<a href="{% url registration_register %}">Register</a>
<a href="{% url auth_password_reset %}">Forgot your password?</a>
{% endblock %}

Use implicit form URL submit
Use implicit form URL submit
