from django.template.loader import render_to_string

message_text = render_to_string(email_text_template, email_text_context)
message_html = render_to_string(email_html_template, email_html_context)