<!DOCTYPE html>
<html>
<body>
<h1>{% firstof x y z %}</h1>
<p>Check out views.py to see the content of the 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': '',
'y': 'Ford',
'z': 'BMW',
}
return HttpResponse(template.render(context, request))