Extract data from Magento to Django. Currently converts Magento products and users to Django fixtures.
- Clone the repository
- Use Python 2 and install requirements using
pip install -r requirements.txt
from the base directory. - Run
jupyter-notebook
on terminal to test if its runnig correctly.
- First export data from your Magento application. In admin page goto System -> Export. Select Product as entry Type and click continue.
- Rename the downloaded file to
products.csv
. - Copy the file
products.csv
to the base directory. - Open
jupyter-notebook
and openExtract products from magento.ipynb
. Run the program. - The required fixtures is saved as
fixtures.json
in your base directory. - Make sure that you have installed the Django ecommerce application correctly. Copy the fixture to
ecommerce/apps/catalogue/fixtures
directory in the Sample ecommerce site. - Install the fixture using
python manage.py loaddata ecommerce/apps/catalogue/fixtures/fixtures.json
.
- First export data from your Magento application. In admin page goto System -> Export. Select
Customers Main File
as entry Type and click continue. - Rename the downloaded file to
customers.csv
. - Copy the file
customers.csv
to the base directory. - Open
jupyter-notebook
and openExtract Users.ipynb
. Run the program. - The required fixtures is saved as
user_fixtures.json
in your base directory. - Make sure that you have installed the Django ecommerce application correctly. Copy the fixture to
ecommerce/users/fixtures
directory in the Sample ecommerce site. - Install the fixture using
python manage.py loaddata ecommerce/users/fixtures/user_fixtures.json