Re: Validating imported data

2009-01-13 Thread Eugene Mirotin
My favourite solution for this task is the following: 1) you create the "simple" form with the file upload and submit it 2) in submit handler you parse the file and create the "preview" formset (is inline formset, form example) filling it with the parsed data. If the file cannot be parsed, you can

Re: Validating imported data

2009-01-12 Thread Karen Tracey
On Mon, Jan 12, 2009 at 10:42 PM, Peter wrote: > > Hello, > > I'm trying to build an application with django that supports data > import from a CSV. The problem that I'm having is validating the data. > I know how to validate data that comes from a form. > > However, in my case the user is using

Validating imported data

2009-01-12 Thread Peter
Hello, I'm trying to build an application with django that supports data import from a CSV. The problem that I'm having is validating the data. I know how to validate data that comes from a form. However, in my case the user is using a CSV file for imput instead a form. Is there a way that I can