2
You don’t seem to be using Jinja at all here. Although Jinja is now an option in Django, the default is to use the built-in template language, and that appears to be what you are using. In that syntax, all lookups are done with dot notation:
<td>{{ p.6 }}</td>
etc.
Source:stackexchange.com