[Ncr-Python.in] Dynamic CSV importer

ragsagar ragsagar at gmail.com
Tue Oct 23 17:32:37 CEST 2012


On Tue, Oct 23, 2012 at 5:47 PM, Raakesh kumar <kumar3180 at gmail.com> wrote:
> Hello Everybody,
> I am facing a problem that i have an e-commerce website built in django in
> which i want to have a massive product upload facility. There has to be a
> panel where merchant can upload a csv file(format should be table structure,
> i.e. first row will contain headers and rest will contain data) after that
> we will populate two form to map csv headers with model fields and when user
> maps them (mapper could be some drop-down thing), data should go in
> database.
> If you know any good library for this.
> In the mean time i am looking at "django-csv-importer".

Using the csv module in the python standard library you can read the
csv file and loop over the data and populate the model user selects.

-- 
blog : ragsagar.wordpress.com
mail id : python -c "print '@'.join(['ragsagar','.'.join([x for x in
['gmail','com']])])"


More information about the Ncr-Python.in mailing list