from django.template.loader import render_to_string
rendered = render_to_string(template, context)
from django.template.loader import render_to_string
rendered = render_to_string(template, context)
tempdir = mkdtemp(prefix="render_to_pdf-")
tex_path = os.path.join(tempdir, "doc.tex")
with open(tex_path, 'w') as tex_file:
tempdir = mkdtemp(prefix="render_to_pdf-")
tex_path = os.path.join(tempdir, "doc.tex")
with open(tex_path, 'w') as tex_file: