{% autoescape off %} <html> <head> <title>{{ form.title }}</title> </head> <body> {{ form.html }} </body> </html> {% endautoescape %}