[Answered ]-Django – How to iterate queryset object in template

1👍

thanks for posting.

{% for question in questions %}
    Do stuff with each question
{% empty %}
    Do stuff when there's no questions
{% endfor %}
👤Swift

Leave a comment