wq / django-data-wizard

🧙⚙️ Import structured data (e.g. Excel, CSV, XML, JSON) into one or more Django models via an interactive web-based wizard
https://django-data-wizard.wq.io
MIT License
341 stars 53 forks source link

Question: Are all the dependencies documented? #16

Closed askpatrickw closed 5 years ago

askpatrickw commented 5 years ago

I followed along the basic setup and it when I tried to runserver I saw that Django rest framework was required.

And now when I try to run an import on a file I have no options when prompted to "Select a format (serializer) to continue."

Is it also required that I fully wire DRF to each model I want to use data-wizard with?

sheppard commented 5 years ago

You don't have to create a unique DRF serializer for each model, but you do need to explicitly register them with the wizard. See https://github.com/wq/django-data-wizard#model-registration . (This was documented before, but I added a heading to make it stand out more.)

I also added djangorestframework to the dependencies, thanks for the catch.

askpatrickw commented 5 years ago

And here I thought someone would answer and I'd make a PR. Thanks for the full-service response!

Wcollard commented 5 years ago

I am getting bogged down with an import of an XML file that has nested relational tables (one to one) or one to many relationships. Is the Django Data Wizard set up for that? or it what we are trying to do too complicated