stava wrote:

in the template doco there's some mentioning of other formats than
HTML, e.g. CSV and email.
Has anyone tried to use the django template framework for producing CSV
files or emails?
Does anyone know how that could be done?
It shouldn't be of any problem. Just make a template lie this:

{% for object in object_lis %}
"{{ object.field1 }}","{{ object.field2 }}","{{ object.field3 }}"
{% endfor %}

And here you got CSV file.

Reply via email to