{% extends "base.html" %} {% load get %} {% block content %} <table> {% for pos in pos_list %} <tr> <td> {{ pos }} </td> {% for qs, column in columns %} <td> {{ table|get:pos|get:column }} </td> {% endfor %} </tr> {% endfor %} </table> {% endblock %}