S
S
serjio5682018-10-19 22:12:56
Django
serjio568, 2018-10-19 22:12:56

Django and how to organize product features?

Poke me with your nose or explain how to correctly make the characteristics of the goods?
For example, there are TVs that are characterized by a set of characteristics that includes diagonal, type, etc.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2018-10-19
@sergey-gornostaev

How to make multiple values ​​for one field in Django?
How to add dynamic attributes to a Django model?
Python/Django Product filter on website?

V
Vladimir, 2018-10-20
@vintello

postgress, for example, has json fields in it . Janga can do them too.
so why not use this explosive mixture for your needs?

A
Alexey Guest007, 2018-10-24
@Guest007

To do this, they came up with the EAV paradigm, as @sergey-gornostaev wrote.
The solution has both pros and cons. See either the original package for Django in Sergey's post or, here, from a fresh and modified one (fork): https://github.com/sromero84/django-eav

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question