How to add {%for item%} in django
{% block content %}
<div class="mt-6 px-6 py-12 bg-gray-100 rounded-xl">
<h2 class="mb-12 text-2xl textt-center">Shop Smart, Live Better.</h2>
<div class="grid grid-cols-3 gap-3">
{% for item in items %}
<div>
<a href="#">
<div>
<img src="{{ item.image.url }}" class="rounded-t-xl">
</div>
<div class="p-6 bg-white rounded-b-xl">
<h2 class="text-2xl">{{ item.name }}</h2>
<p class="text-gray-500">Price: {{ item.price }}</p>
</div>
</a>
</div>
{% endfor %}
</div>
</div>
{% endblock %}
i tried to add for item in to the block content and iam getting Error during template rendering
k
your text