This is an HTML file rendered as a template, with interpolated variables. Django can use any text file to render a template, whether it's an XML, HTML, RST or TXT file. The only specificity in rendering a template is that we can use values, control structures and a few tricks to make the rendering more dynamic. Templates are generally used in Django to render HTML, text and custom email bodies. Variables passed to the template context: