Live data from Hacker News

Happy 20th Birthday, Django

djangoproject.com

121–130 of 191 posts

Re: Happy 20th Birthday, Django

#122

Django + REST framework is what I cut my teeth on doing web programming in my first job. It's a wonderfully written codebase, I'm very thankful I had some great code to learn from, and it wasn't even 10 years old then, I didn't even realize. Congrats team! Glad to see it's still thriving and a great option to pick up for beginners.

Django I love; last time I tried REST framework it felt like the polar opposite of DRY. Not sure if this was intentional or not.

Re: Happy 20th Birthday, Django

#124

The only issues I see with Django these days are a lack of native python types and especially these days with type hints included in the language I think there should be efforts taken to have this present within the framework itself. I know there's packages that provide it but I'd prefer if it was coming from Django itself. Otherwise it's a fantastic framework that's extremely flexible and a joy to work with most of…

Yeah, to have a properly typed codebase I'm basically isolating the ORM and models from the rest of our app. So there is a selector layer that fetches data, and then maps that do dataclasses/pydantic, instead of passing the django model objects around.

It's a good practice anyways I feel, as the application grows you don't want different "apps" to know too much about models in other apps.

But even with this flow, in my selector layer I still have to do "# type: ignore" any time I've used an annotation. Especially due to python's lacking lambdas, when I map data from a queryset it often has to be a properly defined function, but then whatever annotation django-stubs managed to apply is lost anyways.

Re: Happy 20th Birthday, Django

#126
post #90
post #73

Earlier quoted context omitted.

Now Phoenix and Elixir are two technologies I love! But theyre admin offering is lacking. (Which is ok today in modern development and things like pgadmin)

Django Admin is a bit of a trap though ;) it's powerful enough that you can build an entire application with it, custom views and powerful filtering and ACLs and whatnot, it easily gets 80% of your job done with almost nothing but a declarative DSL. But the remaining 20%? Now you've dug yourself a hole with no recourse but a complete rewrite. It's time/money you would've otherwise spent anyway, but that sunken cost f…

Oh, I've been disagreeing with this take on the admin for such a long time!

Re: Happy 20th Birthday, Django

#127
As a Flask/Fastapi guy I lately made a project with Django and I have to say I am very impressed with how much the defaults worked for my project and how much of the complicated issues were taken care of (e.g. database migrations, prrmission structures).

Re: Happy 20th Birthday, Django

#128

Happy Birthday, Django! If you were a music genre, you’d be heavy metal — loud, structured, and built to last. 5.2 release was recently discussed here on HN: https://news.ycombinator.com/item?id=43556656

I would’ve thought jazz…

Re: Happy 20th Birthday, Django

#130
post #127

As a Flask/Fastapi guy I lately made a project with Django and I have to say I am very impressed with how much the defaults worked for my project and how much of the complicated issues were taken care of (e.g. database migrations, prrmission structures).

I'm a Django guy and I recently wrote a FastAPI because it needed some async stuff. But that's a rare exception. Most times I will still choose Django and just go sync, which will still scale quite a bit. I might rewrite the FastAPI app in Zig, come to think of it.
Post reply on HN