Re:Taming the beast that is the Django ORM – An introduction
by roze_sha on Sunday September 01, 2024 @01:33AM
(#41414560)
What about using pydantic?
[ Parent
| on HN ]
Re:Taming the beast that is the Django ORM – An introduction
by mehdix on Sunday September 01, 2024 @02:02AM
(#41414677)
FWIW, one python project I'm working on uses an obscure Framework, and ORM. I was contemplating to convert it to FastAPI+Pydantic, however the amount of effort needed was no different than rewriting the whole project.
Re:Taming the beast that is the Django ORM – An introduction
by LtWorf on Sunday September 01, 2024 @07:11AM
(#41415915)
pydantic + sql database?
So have 2 components that ensure the types are correct? Why?
Re:Taming the beast that is the Django ORM – An introduction
by winrid on Sunday September 01, 2024 @02:22PM
(#41419028)
I already use type annotations with Python for use within my IDE. It's just all tiring garbage. Java is already almost a scripting language and I can actually use a shared heap, etc. also I have some core code in java I use in the desktop app I want to reuse in the server. Right now I transpile that core code to TS and then JS to use client side, but I'd rather just have everything in Java.