[Answer]-Django App Display No Result

1👍

Here events is a queryset. Refer django docs on querysets. You need to iterate over the objects in it. Edit your template code like this;

{% if events %}
    {% for each_event in events %}
        <ul>
            {{each_event.description}}
            {{each_event.start_date}}
            {{each_event.creator}}
        </ul>
    {% endfor %}
{% endif %}
👤arulmr

Leave a comment