{% extends 'base.html' %} {% block title %} Login Form {% endblock %} {% block content %}
{% if user.is_authenticated %} Hi {{ user.username }}. You are authenticated. Now you can logout {% if user.is_staff and user.is_active %} or add article {% else %} . If you want to write articles you have to be an active user having Staff status. {% endif %} {% else %}

Login

{% if messages %} {% endif %}
{% if error %} {% endif %} {% if no_active %} {% endif %}

{% csrf_token %}

{% endif %}
{% endblock %}