🚀 Checking data location by customer city 🚀
Configuring environmentpip install virtualenv
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
Access the http://localhost:8000/admin/customer/customer/ have no customers
In root of the project I put the 'customers.csv'
now, to import it, run the command:
make extract
It taking some seconds to extract all the customers, because I don't found a way to get a list in Api.
Then I take the list, make a get one by one and build a dict.
If you want to run another csv write 'docker-compose exec web bash -c 'python manage.py customers_bulkupsert --path'
Documentation: http://127.0.0.1:8000/documentation/
Get By id: http://127.0.0.1:8000/customers/{id}
In 'customer/tests/management/command/tests_customer_bulkupsert.py' we have the tests to run the tests just run command
make test