On Oct 7, 2:44 pm, Bobby Roberts <[EMAIL PROTECTED]> wrote:

> This code drops all selected fields into a temporary csv file named
> "contact.csv" so that it can be downloaded.  However, the template
> HTML is being appended after the last record in the csv file.
>
> Is there any way to prevent this from happening?

This is covered in the official docs, the given example works
perfectly:

http://docs.djangoproject.com/en/dev/howto/outputting-csv/#howto-outputting-csv

And if that's really your SQL query you can easily get away with a
Queryset instead of doing it manually.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to