views:

1097

answers:

3

I would like to generate a report file from a view&template in django. Preferred file formats would be OpenOffice/ODF or PDF.

What is the best way to do this?

I do want to reuse the page layout defined in the template, possibly by redefining some blocks in a derived template.

Ideally, the report should be inserted into an existing template file so I can provide the overall page layout, headers and footer in the generated output format.

+2  A: 

try pod

Toni Ruža
+3  A: 

pisa/xhtml2pdf should get you covered for PDF. It even includes an example Django project.

pantsgolem
+3  A: 

Try ReportLab for PDF output:

http://www.reportlab.org/

Gabriel Ross