{% extends 'base.html' %}
{% block title %}
Login Form
{% endblock %}
{% block content %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% 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 %}