N
N
NotProblem2017-11-13 20:06:29
Django
NotProblem, 2017-11-13 20:06:29

Product attributes for a specific Django category?

Good afternoon!
Please tell me how to organize dynamic attributes for the product, depending on the selected category. Those. there is a category model (mptt) products are attached to it, certain attributes must be attached to each product in order to filter them on the site in the future.
Many people write about using django-eav, but there is no documentation on how to properly attach it to the model and display dynamic properties for the product.
Maybe somewhere there is a tutorial in English? Or maybe somehow you can do without eav?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2017-11-13
@deliro

EAV is done by hand in 10 minutes. There is nothing to read.
JSON is faster and more efficient than EAV, but denormalization is there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question