Templated-docs is a Django package that allows you to generate documents,
including texts, spreadsheets and presentations, from templates. It utilises
LibreOffice as an underlying conversion document mechanism.

To generate a document from a template sample.odt you can write a view
like this:

fromtemplated_docsimportfill_templatefromtemplated_docs.httpimportFileResponsedefget_document(request):""" A view to get a document filled with context variables. """context={'user':request.user,'foo':'bar'}filename=fill_template('sample.odt',context,output_format='pdf')visible_filename='greeting.pdf'returnFileResponse(filename,visible_filename)