News for hackers. Stuff that matters.
Re:Happy 20th Birthday, Django by rick1290 on Monday July 14, 2025 @12:46PM (#44562244)
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.
Re:Happy 20th Birthday, Django by misthop on Monday July 14, 2025 @01:18PM (#44562718)
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 by heckintime on Monday July 14, 2025 @01:29PM (#44562868)
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 by buffalobuffalo on Monday July 14, 2025 @01:26PM (#44562828)
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 by delbronski on Tuesday July 15, 2025 @12:04PM (#44572577)
I wanted to like HTMX and Alpine. But after a few medium sized projects with it I went back to vite/react for larger frontend. I found it so difficult to come back to old htmx/alpine code. If you got a complex UI to maintain I would personally recommend the React route. It is very easy to setup with Django.