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 <mccomas.ch...@gmail.com> wrote: > 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 <gamesb...@gmail.com> wrote: > > > > > On Mar 26, 1:54 pm, Chris McComas <mccomas.ch...@gmail.com> 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 > > > thishttp://blog.2theleft.la/2010/02/9/importing-csv-files-django-python/ > > > but my question is, in my view how would I call the file that was > > > uploaded? > > > > View:http://dpaste.com/176327/ > > > Chris > > > Have a look at :http://code.google.com/p/django-batchimport/ > > > HTH. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.