Empty array
- Answer
{% for item in items_list %}
<li>{{ item }}</li>
{% empty %}
<li>No items at the moment</li>
{% endfor %}
This question is one of 13 in Django template tags and filters. Test yourself on all of them.
Practice quiz FlashcardsLog in to add an explanation.
Advertisement