Hacker News Viewer

Some more things about Django I've been enjoying

by surprisetalk on 7/21/2026, 8:30:22 PM

https://jvns.ca/blog/2026/07/21/more-nice-django-things/

Comments

by: faangguyindia

I mostly use Go + SQLite for all the things I used to use Rails, JavaScript, or Python for.<p>I find python django wastes too much resources, just look at memory usage.<p>My go apps use very little memory, so we can scale to many users for very cheap.<p>For larger apps i use postgres (why? replication is easy using pgfailover, later apps need multiple api servers so it&#x27;s out of process db like postgres is fine) but most of my web app use HTMX and if we need some reactivity, i use react (simply due to react experience from work)<p>For our maintenance calorie tracking app, which is free and has no ads, we have to use as few resources as possible as we scale to thousands of users: macrocodex (which figures out maintenance calories from weight and calorie intake). We initially used Haskell.<p>Later, it became slow and cumbersome to develop in (developing on an Apple Silicon Mac and deploying to x64 is a pain), even though I liked writing Haskell code. I even tried nix and wasted a day on that! I had a choice between OCaml and Rust. I picked Rust and never looked back.<p>The algorithm serves in 0.1 ms on Rust. In Haskell, it was 0.2 ms, and memory usage was twice that of Rust.<p>Yeah, I use Docker to compile Rust, but it&#x27;s pretty fast, much faster than what I had with Haskell, so the developer experience is great.<p>By switching to Rust, the LOC dropped to half of what we had in Haskell.<p>project turned out to be successful. It has already produced guaranteed weight loss or weight gain for many people.<p>So I set out to create an algorithmic workout app, for which I am using Rust and Go. The mobile app is in Flutter.

7/26/2026, 8:34:01 AM


by: ranedk

I have been using Django since 0.95 and I haven&#x27;t seen anything which is so flexible with amazing DSLs while also making it easy to understand the magic behind it.<p>For the last 10 years, even in a Golang stack or Java stack, I still use Django for models and migration. I even have generators which generate Gorm (or other framework) DAO or Java hibernate classes using Django models.<p>With LLMs, it becomes easier since I can now write all the model, custom querysets in Django, ask the LLM to generate Golang DAO, setters and getters... and test the query against the Django generated queries for completeness.<p>Atlas, sqlx, sqlc and all other ORM like things in golang cannot do migrations the way Django does.

7/26/2026, 8:36:21 AM


by: echoangle

&gt; Some light load testing (with (ab -n 1000 -c 1) shows that right now we can serve about 2-3 requests per second (on a ~$10&#x2F;month VM).<p>&gt; After turning on template caching, it seems like the site can now pretty easily handle 12 requests per second or so without using all of the CPU. I have not carefully benchmarked the before and after but it seems like it’s made a pretty big difference.<p>That seems crazy low, I think there has to be something else going on here.

7/26/2026, 7:50:27 AM


by: altbdoor

Good ole Django. Worked with a number of frameworks (tm), but nothing really quite scratches my itch like Django does. I still find the ORM and database migration system unmatched.

7/26/2026, 7:20:47 AM


by: BrenBarn

The Django filter syntax with the double underscores is like fingernails on a chalkboard to me. I find it insane that they didn&#x27;t just use operator overloading to create a real query expression language.

7/26/2026, 8:26:41 AM