{% extends 'base.html' %}

{% block title %}Login{% endblock %}

{% block content %}
<div class="loginform">
  <h3>Please login to see this restricted content</h3>
  <form method="post">
    {% csrf_token %}
    {{ form.as_p }}
    <button type="submit">Login</button>
  </form>
</div>
{% endblock %}

{% extends 'base.html' %}

{% block title %}Login{% endblock %}

{% block content %}
<div class="loginform">
  <h3>Please login to see this restricted content</h3>
  <form method="post">
    {% csrf_token %}
    {{ form.as_p }}
    <button type="submit">Login</button>
    <input type="hidden" name="next" value="{{next}}" />
  </form>
</div>
{% endblock %}

Add 'next' url for redirection purposes after logging in
Add 'next' url for redirection purposes after logging in
