Answer the question
In order to leave comments, you need to log in
How to organize Products in Django?
So. There is a shop. Goods for it are delivered via API from the websites of different suppliers. Everyone has different data. Someone in XML, someone in JSON, etc.
On the site itself, the client requires the following structure to be organized:
The catalog displays products grouped by Color. That is, so that from the catalog you can go to the same product, but in a different color. Inside each color there is a list of the sizes of this product and you can put any of these sizes in the basket.
I organized something like this structure:
БазовыйТовар:
Цвет:
Размер
Размер
Цвет:
Размер
Размер
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question