How to make Django template engine to render in memory templates?
Based on the the docs for using the template system:
from django.template import Template, Context
t = Template("My name is {{ my_name }}.")
c = Context({"my_name": "Adrian"})
t.render(c)
Instantiate Template
with the string to use as a template.