Definitely use python csv and do it yourself. It's really very
simple. shaner's links above should help. One thing I would add is
make sure you convert all of your model values to unicode because
otherwise the csv module will choke on bad characters.
unicode(value, 'utf8')
:Marco
On Feb
i just added a csv export as an admin action from details here
django csv
http://docs.djangoproject.com/en/1.1/howto/outputting-csv/#howto-outputting-csv
admin actions
http://docs.djangoproject.com/en/1.1/ref/contrib/admin/actions/#ref-contrib-admin-actions
On Feb 17, 7:49 am, Shawn Milochik
Note: Your "novice Django skills" are irrelevant -- working with CSV files in
Django is nothing more than Python. Just check out the docs and examples on the
Python CSV module. You'll enjoy working with Python (and Django) a lot more if
you take the time to read a book or two, do tutorials, and
I would do it straight from the database.
You can use mysqldump (If using mysql) to output a csv file. Any other
major database I know of can dump to csv.
Generic SQL to do it:
SELECT * INTO OUTFILE 'export.csv' FIELDS TERMINATED BY ',' OPTIONALLY
ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM table
Hi I have a quick question.
I am currently using django-survey and was wondering if there is any
way of downloading the results into a CSV format. It is a nice app but
the download function is surely very important.
Another way I though of was to write the results to CSV myself with
csv writer bu
5 matches
Mail list logo