장고에서는 템플릿 파일에서 파이썬 코드를 실행하기 위해 {% ... %} 기호를 사용하는 문법을 제공
{% for item in items %} {{ item }} {% endfor %}
{% if condition %} {% else %} {% endif %}
{% extends 'base.html' %} {% block content %} ... {% endblock %}