Get your own Django server
<!DOCTYPE html>

<p>The queryset object:</p>

{{ mymembers }}

<p>Loop through the items:</p>

<table border='1'>
  {% for x in mymembers %}
      <td>{{ }}</td>
      <td>{{ x.firstname }}</td>
      <td>{{ x.lastname }}</td>
  {% endfor %}

from django.http import HttpResponse
from django.template import loader
from .models import Member

def testing(request):
  mydata = Member.objects.filter(firstname='Emil').values()
  template = loader.get_template('template.html')
  context = {
    'mymembers': mydata,
  return HttpResponse(template.render(context, request))

# Check out template.html to see how the mymembers object
# was used in the HTML code.