SOLVED! the way to do this –
from django.template.loader import render_to_string
rendered = render_to_string('my_template.html', { 'foo': 'bar' })
thanks to ned for pointing to the Django docs
SOLVED! the way to do this –
from django.template.loader import render_to_string
rendered = render_to_string('my_template.html', { 'foo': 'bar' })
thanks to ned for pointing to the Django docs