Re: [mezzanine-users] Re: Suggestion on how to make import and export of products using csv from admin panel?

2016-05-02 Thread Eduardo Rivas
You will need to create separate imports for separate models. At that point it might be better to create your own admin view to import several models at a time, calling the individual model importer in the right order. -- You received this message because you are subscribed to the Google

[mezzanine-users] Re: Suggestion on how to make import and export of products using csv from admin panel?

2016-05-01 Thread Sathish Anton
Hi, The management command product_db works with some changes made. 1. mkdir "/tmp/orig/product" where LOCAL_IMG_DIR="/tmp/orig" 2. Copy all your imagefiles to "/tmp/orig/product" 3. Make small changes as mentioned in the new product_db.py attached with this post. Repeat test: 1. python

Re: [mezzanine-users] Re: Suggestion on how to make import and export of products using csv from admin panel?

2016-04-30 Thread Sathish Anton
Hi, This is what i did with django-import-export 1. pip install django-import-export 2.# add to settings.py INSTALLED_APPS = ( ... 'import_export',) 3. Modified lib/python2.7/site-packages/cartridge/shop and added following code from import_export import resources from

Re: [mezzanine-users] Re: Suggestion on how to make import and export of products using csv from admin panel?

2016-04-30 Thread Sathish Anton
Hi, W.r.t Product_db command i tried the following with single django pony sample data loaded with createdb. 1. python manage.py product_db --export cur.csv 2. Deleted the single django product using admin panel manualy so that there wont be any issues with indexing or sku. 3. python manage.py

Re: [mezzanine-users] Re: Suggestion on how to make import and export of products using csv from admin panel?

2016-04-30 Thread Eduardo Rivas
What have you tried so far? What errors are you getting? -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For

[mezzanine-users] Re: Suggestion on how to make import and export of products using csv from admin panel?

2016-04-30 Thread Sathish Anton
Hi, The import seems to be an issue with both Product_db command and django-import-export. Can some one explain exact shell commands that would be required to add a product to 1. shop category 2. shop/subcategory from python manage.py shell or some other sugestion on utils available.