{% extends "base.html" %} {% load static %} {% load cache %} {% block content %} {% cache 500 product_list %}
<div class="container">
<ul>
{% for product in object_list %}
<li><a href="{% url 'product_detail' product.id %}">{{ product.title }}</a></li>
{% endfor %}
</ul>
</div>
{% endcache %} {% endblock %}
all the blocks are lined up in one line, and also it is necessary that the li tag has an indent
all the blocks are lined up in one line, and also it is necessary that the li tag has an indent