I want to allow my end users to create email templates and in the template allow them to specify dynamic info like in mail chimp.
Example:
"Hello Mr.{{last_name}} I am calling regarding an issue."
I want to allow my end users to create email templates and in the template allow them to specify dynamic info like in mail chimp.
Example:
"Hello Mr.{{last_name}} I am calling regarding an issue."
You can use Django's built in templating engine to allow your users to create custom email templates, this seems to be a very common approach.
https://docs.djangoproject.com/en/1.11/topics/email/#send-mail https://docs.djangoproject.com/en/1.11/ref/templates/api/#rendering-a-context
You may also want to consider using a less featureful templating engine with your users though because Django templates allow your users to put some really wacky logic or Python expressions in your templates, it may be too permissive for the average user. I enjoy using Mustache for logic-less templates, it may be a simpler syntax and solution for your users, there is a Mustache implementation in python at Pystache.