{% extends "base.html" %} {% block "content" %} {% if not error %} {% if item1 %} You got the item {{ item1 }} {% endif %} {% if item2 %} You got the second item {{ item2 }} {% endif %} {% else %} {{ error }} Junge junge junge {% endif %} {% endblock %}