{% extends 'base.html' %} {% block content %} {% if user.is_authenticated %} Add category

Add category

{% csrf_token %} {{ form.as_p }}
{% endif %} {% endblock content %}