<form method="post" action="">
    {% csrf_token %}
    <div class="input-group input-group-lg">
        <span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i> </span>
        {% if login_form.username %}
            {{ login_form.username }}
        {% else %}
            {{ form.username }}
        {% endif %}
    </div>
    <div class="input-group input-group-lg">
        <span class="input-group-addon"><i class="glyphicon glyphicon-asterisk"></i> </span>
        {% if login_form.password %}
            {{ login_form.password }}
        {% else %}
            {{ form.password }}
        {% endif %}
    </div>
    <button class="btn btn-primary btn-block">Login</button>
</form>
<form method="post" action="{% url 'planner:user-login' %}">
    {% csrf_token %}
    <div class="input-group input-group-lg">
        <span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i> </span>
        {% if login_form.username %}
            {{ login_form.username }}
        {% else %}
            {{ form.username }}
        {% endif %}
    </div>
    <div class="input-group input-group-lg">
        <span class="input-group-addon"><i class="glyphicon glyphicon-asterisk"></i> </span>
        {% if login_form.password %}
            {{ login_form.password }}
        {% else %}
            {{ form.password }}
        {% endif %}
    </div>
    <button class="btn btn-primary btn-block">Login</button>
</form>
Fix blank page after login
Fix blank page after login
