<li>
<a href="{% url 'get_category' category.alias %}">
<img src="{{ MEDIA_URL }}{{ category.image.url }}" alt="">
<ctgname>{{ category.name }}</ctgname>
</a>
</li>
<li>
{% for category in categories %}
<a href="{% url 'get_category' category.alias %}">
{% endfor %}
<img src="{% static 'res/img/l1.png' %}" alt="">
<ctgname>{{ Category.name }}</ctgname>
</a></li>