Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Django Basics Django Templates List template

Josh Wilson
Josh Wilson
9,611 Points

(Django Basics) Bummer wrong output for article.headline in articles

so i'm not sure what is wrong so i have a query list of articles and each article has a headline (article.headline) which i display am i missing something ?

{% for article in articles %} {{ article.headline }} {% endfor }}

articles/templates/articles/article_list.html
{% for article in articles %}
{{ article.headline }}
{% endfor }}

Been a few months and you probably solved this by now, but you have a typo in your endfor line {% endfor }} should be {% endfor %}