Re: Uploading CSV file via ModelForm and then getting info and storing in a different model

2010-03-26 Thread Chris McComas
So I resolved the previous issue, not i'm getting this error, newline in string. http://dpaste.com/176429/ Any idea? I'm thinking for some reason I need to change something in reader = csv.reader(file, delimiter=',', quotechar='"') On Mar 26, 10:27 am, Chris McComas wrote: > derek, > > thanks

Re: Uploading CSV file via ModelForm and then getting info and storing in a different model

2010-03-26 Thread Chris McComas
derek, thanks, that's a bit much for what we need. i setup this in my views: http://dpaste.com/176380/ I'm getting this error: http://dpaste.com/176382/ How can I get it to open the file that was just uploaded and saved? On Mar 26, 9:27 am, derek wrote: > On Mar 26, 1:54 pm, Chris McComas w

Re: Uploading CSV file via ModelForm and then getting info and storing in a different model

2010-03-26 Thread derek
On Mar 26, 1:54 pm, Chris McComas wrote: > I have to models, one is just a timestamp field and a file, the other > has some information. I need to create a view that'll allow our staff > to upload a CSV and then it'll automatically take that info and save > it into the second model. I found > thi

Uploading CSV file via ModelForm and then getting info and storing in a different model

2010-03-26 Thread Chris McComas
I have to models, one is just a timestamp field and a file, the other has some information. I need to create a view that'll allow our staff to upload a CSV and then it'll automatically take that info and save it into the second model. I found this http://blog.2theleft.la/2010/02/9/importing-csv-fil