|
|
@ -105,7 +105,7 @@ def render_tex(_request, template, ctx={}): |
|
|
Returns: |
|
|
Returns: |
|
|
An HttpResponse with type `application/pdf` containing the PDF file. |
|
|
An HttpResponse with type `application/pdf` containing the PDF file. |
|
|
""" |
|
|
""" |
|
|
pdf = create_pdf(template, ctx={}) |
|
|
pdf = create_pdf(template, ctx) |
|
|
r = HttpResponse(content_type='application/pdf') |
|
|
r = HttpResponse(content_type='application/pdf') |
|
|
r.write(pdf) |
|
|
r.write(pdf) |
|
|
return r |
|
|
return r |
|
|
|