views:

21

answers:

1

Hello,

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 ?

Thanks

+1  A: 

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

Ignacio Vazquez-Abrams
So simple ! Thanks.
Murkin

related questions