Hacker News new | ask | show | jobs
by blopker 525 days ago
I agree with you on Django Ninja, so refreshingly simple compared to DRF. I think Django core needs to adopt something like it.

However, Vite is pretty complicated. I prefer just esbuild if I don't need all the extra features of Vite, which is usually true with Django. I wrote a post[0] with an example repo[1] if anyone wants to see how everything wires up.

With Solidjs, the minimum JS payload is around 9kb, and you get access to the whole JS ecosystem if you want it.

[0] https://blopker.com/writing/07-django-islands-part-1/ [1] https://github.com/blopker/typesafedjango

1 comments

> I agree with you on Django Ninja, so refreshingly simple compared to DRF. I think Django core needs to adopt something like it.

I was going to ask about this with respect to DRF, but you answered it. I am re-learning Django after having been away from it and Python for ~4 years now, and my previous experience was with DRF in a somewhat toxic group so I had less than ideal feelings about it. I know PTSD is a real thing and I don't mean to sound glib about it, but I think I actually had the beginnings of it from that experience.