5 ms·
>But I can’t imagine using an ORM for complex data tables and relationships with normalized data. Whenever I read a statement like this from someone, I always
by darkhorse13 6y ago
>But I can’t imagine using an ORM for complex data tables and relationships with normalized data.
Whenever I read a statement like this from someone, I always feel that they actually haven't thoroughly read the docs for Django's ORM. Can you give me one concrete complex example that you can't imagine doing with the ORM? Because 95% of the time, these "complex" models are trivially easy to pull off with the ORM (from my experience).
- ddorian43 6y agoDjango orm doesn't support composite primary keys.
- darkhorse13 6y agoFair enough. There is `unique_together` though, which you may look into.
- BiteCode_dev 6y agoThe beauty of the Django ecosystem, is that you have packages for everything: djangopackages.org E.G: https://github.com/Arisophy/django-compositepk-model https://github.com/Arisophy/django-compositepk-model