Re: Simple export of CSV

2010-03-25 Thread Alex Robbins
Not sure if this will help, but the docs have a pretty in-depth explanation of doing csv export. http://docs.djangoproject.com/en/dev/howto/outputting-csv/ HTH, Alex On Mar 24, 3:03 pm, jlwlynn wrote: > I'm trying to simply export CSV, but have failed miserably.  First I > perform a search and

Re: Simple export of CSV

2010-03-25 Thread Tom Evans
On Wed, Mar 24, 2010 at 8:16 PM, Shawn Milochik wrote: > Have your 'export' button make an AJAX call to a view, which creates the CSV > file and prompts the user to 'Save As.' > > Details: > >        1. Use the same view you currently have, with an 'if' statement which > returns a standard (html

Re: Simple export of CSV

2010-03-24 Thread Shawn Milochik
Have your 'export' button make an AJAX call to a view, which creates the CSV file and prompts the user to 'Save As.' Details: 1. Use the same view you currently have, with an 'if' statement which returns a standard (html) response or a CSV file based on a slug in your URL. 2.

Simple export of CSV

2010-03-24 Thread jlwlynn
I'm trying to simply export CSV, but have failed miserably. First I perform a search and the query set is displayed in a template. I want to have an export button that will export the data on the page, but unfortunately, I lost the query set and even if I were to have it as a parameter, it would