Re: Read a csv file and save data in postgresql

2015-02-24 Thread carlos
or maybe used this app, in the admin https://github.com/bmihelac/django-import-export Cheers On Tue, Feb 24, 2015 at 7:57 PM, Kelvin Wong wrote: > Looking at your code, maybe this one is better > > https://pypi.python.org/pypi/unicodecsv/0.9.4 > > This thing will make a dict, which you can mak

Re: Read a csv file and save data in postgresql

2015-02-24 Thread Kelvin Wong
Looking at your code, maybe this one is better https://pypi.python.org/pypi/unicodecsv/0.9.4 This thing will make a dict, which you can make into a object by feeding it to a modelform. K On Tuesday, February 24, 2015 at 3:53:19 PM UTC-8, elcaiaimar wrote: > > Hello, > > I have a website and I

Re: Read a csv file and save data in postgresql

2015-02-24 Thread Vijay Khemlani
Parsing a CSV file is not a particularly hard thing to do https://docs.python.org/2/library/csv.html You can change the example to read from the file in your model an instead of printing to the console, to store it in the database. On Tue, Feb 24, 2015 at 8:53 PM, elcaiaimar wrote: > Hello, >