{% extends "base.html" %} {% block title %}Add article{% endblock %} {% block content %}

Add article


{% if user.is_authenticated %} {% if user.is_active %} {% if user.is_staff %}
{% csrf_token %} {{ form.as_p }}
{% else %} You should have Staff status to write articles {% endif%} {% else %} You are not an active user {% endif %} {% else %} You should log in to write articles {% endif %}
{% endblock %}