{% extends 'base_layout.html' %} < !-- this file extends from base layout template --> {% block content%}

Articles List

{% for article in articles %}

{{ article.title }}

{{ article.snippet }}

{{ article.date }}

{% endfor %}
{% endblock %} < !-- extending a base template, a base template has all of the stuff eg header footer etc all goes in to the base template --> < !-- so that is how we extend template ie you dont have to add header and footer etc which are saved in base template -->