←back to thread

Happy 20th Birthday, Django

(www.djangoproject.com)
578 points davepeck | 2 comments | | HN request time: 0.594s | source
Show context
Euphorbium ◴[] No.44559640[source]
Fastapi has completely replaced django for me. I do not miss orm at all.
replies(3): >>44559711 #>>44559962 #>>44561110 #
1. Takennickname ◴[] No.44561110[source]
"If you're not using Django, you're probably just rebuilding it poorly."
replies(1): >>44562510 #
2. drdaeman ◴[] No.44562510[source]
I think FastAPI's one major design difference is its dependency injection mechanism. Django is designed to do things differently, with services provided through an app- or project-global collection of middlewares (although I haven't used it in a while, maybe something had changed since then) and while there are DI solutions for Django they don't feel "native" to me - not the way FastAPI does it. Either way works, of course - it's probably merely a matter of the preferred mental model.