Load template from a string instead of from a file

django-templates

Solution

Instantiate a `django.template.Template()`, passing the string to use as a template.

Problem

I have decided to save templates of all system emails in the DB. The body of these emails are normal django templates (with tags). This means I need the template engine to load the template from a string and not from a file. Is there a way to accomplish this?

Original source