Using Jinja from string with django 1.8 – undocumented

Django documents how to specify a template engine via

django.template.engines

But not what custom template engines are named.

You can specify a "NAME" parameter to your template configuration to reference it from django.template.engines.

template = engines['jinja'].from_string(template_code)

Leave a Comment