Re: splitting uploaded CSV data

2011-08-05 Thread Vasu Nagalingam
ice. Prefer using CSV > manipulation library instead. Like,http://docs.python.org/library/csv.html > > You can use the CSV reader module for your purpose. > > On Sat, Aug 6, 2011 at 1:13 AM, Vasu Nagalingam wrote: > > > > > > > > > Hi - I am in impl

splitting uploaded CSV data

2011-08-05 Thread Vasu Nagalingam
Hi - I am in implementing a batch file import function where the data file is in CSV format. The data file is uploaded (InMemoryFileHandler) successfully, but I am having trouble parsing the CSV data correctly. My code: for line in imported_data: line = line.split(',') My data is organi

Batch upload data using ModelAdmin

2011-08-03 Thread Vasu Nagalingam
Hi - I am trying to upload data from a CSV file. But I have to do some processing before saving the data (such as slugifying a field). I am trying to use the example provided by fellow users on this thread (http://groups.google.com/group/django-users/browse_thread/thread/ b12bfeb6af4978bb/88d3b1f40