Get your own website
template.html
views.py
 
<!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())                  
127.0.0.1:8000/members/testing