Get your own Django server
template.html
views.py
 
<!DOCTYPE html>
<html>
<body>

<h1>{% firstof x y z %}</h1>

<p>Check out views.py to see the content of the x, y, and z variables.</p>

</body>
</html>                  
from django.http import HttpResponse
from django.template import loader

def testing(request):
  template = loader.get_template('template.html')
  context = {
    'x': 'Volvo',
    'y': 'Ford',
    'z': 'BMW',
    }
  return HttpResponse(template.render(context, request))

                  
127.0.0.1:8000/testing