Dude,
You need to make the following changes.
1. you need to pass a dictionary as the context in your views
return render(request, 'approval.html', {'posts': posts})
2. the prefer the posts to be list of dict
change
posts = {}
...............................
LL = [(1,eachbracket)]
posts.update(LL)
to
posts = []
..........................................
posts.append(eachbracket)
3. you templates syntax is wrong correct it, use {{ }}
{% block content %}
<table>
{% for post in posts %}
<tr>
<td>
{{ post.project }}
</td>
<td>
{{ post.company }}
</td>
<td>
</td>
<td>
{{ post.businessType }}
</td>
<td>
{{ post.userType }}
</td>
</tr>
{% endfor %}
</table>
{% endblock %}
On Friday, 27 May 2016 15:27:32 UTC+5:30, meInvent bbird wrote: