<!DOCTYPE html>
<html>
<body>
{% filter upper %}
<h1>Hello everyone, how are you?</h1>
{% endfilter %}
<p>In template.html you can see how to filter a section of HTML code.</p>
</body>
</html>
from django.http import HttpResponse
from django.template import loader
def testing(request):
template = loader.get_template('template.html')
return HttpResponse(template.render())