You need to add context in your view to access data in template like following:
def detail(request):
# define employee
context = {'users': User.objects.filter(**filter_criteria)}
return render(request, 'polls/detail.html', context=context)
then in your template you can use
{% for user in users %}
<tr>
<td>{{ user.name }}</td>
<td>{{ user.email }}</td>
</tr>
{% endfor %}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…