Live data from Hacker News

Happy 20th Birthday, Django

djangoproject.com

71–80 of 191 posts

Re: Happy 20th Birthday, Django

#71

Love django. Whats the consensus on best way to use django in 2025? I've been going the headless route. Django for the backend and using vite or nextjs on the frontend with openapi specs auto-generated.

Lots of growing love for returning to the template system and using HTMX with a bit of alpine sprinkled in as needed for interactivity.

Re: Happy 20th Birthday, Django

#72
post #45
post #25

As someone today who is an unrelenting critic of python. I have to say thank you to Simon and the Django community as a whole. Its a wonderful "batteries included" framework that has launched many successful projects, companies, and careers. Mine included. And I'd be lying if I didnt say I still use pgadmin as my benchmark for evaluating admin panels in other ecosystems. What you all created with Django is amazing. W…

How can you be an unrelenting critic of Python but love Django?

Same way I can hate the drivetrain of a car but love the interior! They're separate systems that co-habitate.

Specifically for python vs django, most of the things I dont like are actually attributable to decisions by the python team, not necessarily Django.

But many of the things I do like are attributable to the Django team.

Re: Happy 20th Birthday, Django

#73
post #70
post #51

Earlier quoted context omitted.

I don't think you can honestly and objectively criticise something you don't truly know. There's still no framework in e.g. Go that comes anywhere close to matching Django. It's pragmatic, doesn't do too much meta-magic (I still don't "get" Rails), lets you strip away any layers you don't need, etc.

I think Phoenix is very close to Django at fitting that bill.

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)

Re: Happy 20th Birthday, Django

#74

Love django. Whats the consensus on best way to use django in 2025? I've been going the headless route. Django for the backend and using vite or nextjs on the frontend with openapi specs auto-generated.

It's still the best RDB schema creation/migration tool I know of. It has a crazy number of plugins to handle all sorts of unusual field types and indexing. I usually add django to any project I'm doing that involves an RDB just to handle migrations. As long as you avoid any runtime use of the ORM it's golden.

Re: Happy 20th Birthday, Django

#75

Love django. Whats the consensus on best way to use django in 2025? I've been going the headless route. Django for the backend and using vite or nextjs on the frontend with openapi specs auto-generated.

I've been a fan of Django templates and HTMX. I like how I can get interactivity without too much complexity. I do have specific parts of my website that rely on more complex tools, such as Codemirror. Even then, templates work well enough for me, so I haven't found a compelling enough reason to adopt more JS for my website.

Re: Happy 20th Birthday, Django

#76
I first started using Django in 2006, v0.95, the "magic removal" release. I was 19 and doing PHP at a small startup. I'd heard the hype around Rails, and wanted to check it out. Several hours and many head-desk moments later, I still couldn't get everything set up properly on my laptop (running Ubuntu). In my research, I discovered Python and Django and decided to give it a whirl. Twenty minutes later, I had the Django Hello Word page on my screen, and I haven't looked back since.

It wasn't long before newforms became a thing, and the 1.0 release, lots of cool database features, migrations (I remember debating South vs. Nashvegas at work), class-based views (amazing!), Postgres-specific features (built-in JSONField, finally!), Py3k support, ASGI... It's been a long, cool, productive road.

I was at the first DjangoCon in 2008 (leaving my wife at home with our two month old!), and giving a conference talk for the first time a decade later at DjangoCon 2018.

I owe my career to Django. It has been my framework of choice for projects large and small, and I've always felt solid in that decision -- thanks in no small part to the community.

HBD Django! <3

Re: Happy 20th Birthday, Django

#77
post #18

In a very real sense, I have Django to thank for my entire career. As an undergraduate, my first academic job in a research lab had me building websites to promote the research in a lab. Django was brand new, and I was uninterested in petty concerns like stability and security, so I did everything in Django. Years later (2009), I got to do interesting work in a cutting edge machine learning lab due to the expertise I…

> trying to build a complex front end using Django's ORM with physically separate per-user MySQL database servers.

didnt they hear about sqlite, great for this setup

Re: Happy 20th Birthday, Django

#78
post #58
post #39

Earlier quoted context omitted.

Does/did Django have a reputation for instability or insecurity? Also, how on Earth did the ML PhDs decide physically segregated databases for each user were a requirement?

It's not that Django has/had any reputation for those things -- it's that Django had no reputation at all since it was a nascent project with no track record. That means it had no proof points for being stable or secure. At the time I adopted it (~Nov 2005), the public release of the Django project was only a few months old, and indeed breaking changes followed soon after (the so-called "magic removal branch"). As I…

how does one get to be a coder in a research project

Re: Happy 20th Birthday, Django

#79

Django is somehow the one thing in Python I never enjoyed working on. I recommend it thoroughly to people running teams since it keeps devs disciplined, but I've always been a Flask programmer at heart. To each their own. I'm glad Django exists, it's eaten plenty a share of the pie that would have otherwise gone to Rails maybe.

The couple of projects I was forced to use Flask, they both ended as a bunch of poorly assembled libraries to work like Django (admin + orm + migrations + cache) but worse.

The drift from a simple Flask to monstrosity Flasknjo was so natural that I suspect it happens to a lot of people.

Re: Happy 20th Birthday, Django

#80
post #18

In a very real sense, I have Django to thank for my entire career. As an undergraduate, my first academic job in a research lab had me building websites to promote the research in a lab. Django was brand new, and I was uninterested in petty concerns like stability and security, so I did everything in Django. Years later (2009), I got to do interesting work in a cutting edge machine learning lab due to the expertise I…

That early Python community was really nice. There were a lot of helpful strangers on the internet. Same with Ruby.
Post reply on HN