Django Templating: how to access properties of the first item in a list

You can access any item in a list via its index number. In a template this works the same as any other property lookup:

{{ thelist.0.propertyName }}

You can combine the with template tag with the first template filter to access the property.

{% with thelist|first as first_object %}
    {{ first_object.propertyname }}
{% endwith %}