Django: what’s new in 6.0
Posted by rbanffy 10 hours ago
Comments
Comment by teagee 9 hours ago
It will be interesting to see how the tasks framework develops and expands. I am sad to see the great Django-Q2 lumped in with the awful Celery though.
Comment by adamchainz 7 hours ago
Yeah, I mentioned Celery due to its popularity, no other reason ;)
Comment by ryanisnan 7 hours ago
Comment by blorenz 6 hours ago
Comment by hintoftime 8 hours ago
Comment by JimDabell 3 hours ago
— https://steve.dignam.xyz/2023/05/20/many-problems-with-celer...
> The problems with (Python’s) Celery:
— https://docs.hatchet.run/blog/problems-with-celery
> Dramatiq motivation:
— https://dramatiq.io/motivation.html
Here are some alternatives:
Dramatiq: https://github.com/Bogdanp/dramatiq
Comment by leobuskin 5 hours ago
Comment by akoumjian 5 hours ago
- your function arguments aren't serializable - your side effects (e.g. database writes) aren't idempotent - discovering what backpressure is and that you need it - losing queued tasks during deployment / non-compatible code changes
There's also some stuff particular to celery's runtime model that makes it incredibly prone to memory leaks and other fun stuff.
Honestly, it's a great education.
Comment by ffsm8 3 hours ago
What does idempotent mean in this context, or did you mean atomic/rollback on error?
I'm confused because how could a database write be idempotent in Django? Maybe if it introduced a version on each entity and used that for crdt on writes? But that'd be a significant performance impact, as it couldn't just be a single write anymore, instead they'd have to do it via multiple round trips
Comment by saaspirant 4 hours ago
Comment by leobuskin 3 hours ago
Comment by tclancy 6 hours ago
And debugging is a pain in the ass. Most places I’ve been that have it, I’ve tried to sell them on adding Flower to give better insight and everyone thinks that’s a very good idea but there isn’t time because we need to debug these inscrutable Celery issues.
Comment by gnatman 7 hours ago
Comment by jonatron 8 hours ago
Comment by themerone 1 hour ago
Comment by giancarlostoro 10 hours ago
Comment by apothegm 6 hours ago
Comment by littlecranky67 8 hours ago
Comment by globular-toast 22 minutes ago
* https://pypi.org/project/fast_html/
* https://fastht.ml/ (different to above, I think)
* https://github.com/volfpeter/fasthx
Probably others. I strongly prefer this to templating, but I find it makes dyed in the wool Django people squirm.
Comment by squidsoup 9 hours ago
Comment by simonw 9 hours ago
Comment by pier25 4 hours ago
Comment by chistev 9 hours ago
Comment by teagee 9 hours ago
https://adamj.eu/tech/2025/12/03/django-whats-new-6.0/#rende...
Comment by The_Fox 8 hours ago
What I would like is a way to cut down the sprawl of urls and views.
Comment by adparadox 8 hours ago
Comment by JodieBenitez 1 hour ago
I'm using Unpoly and I just render the whole page and let Unpoly swap the content according to the target selectors, so no need for this. Not much difference in perf if you dont generate gigantic pages with heavy header/footer.
Comment by WD-42 7 hours ago
The use case is mainly driven by htmx where you will have lots of these partials and the view code renders them as individual responses.
Comment by agumonkey 9 hours ago
Comment by f311a 9 hours ago
Comment by simonw 9 hours ago
The way you can render just a named partial from both the render() shortcut and the include tag is nice too:
https://docs.djangoproject.com/en/6.0/ref/templates/language...
Comment by f311a 9 hours ago
Comment by agumonkey 2 hours ago
Comment by chistev 9 hours ago
Comment by wahnfrieden 6 hours ago
Comment by JodieBenitez 1 hour ago
Comment by wahnfrieden 1 hour ago
Comment by JodieBenitez 1 hour ago
There is something very appeasing in just pulling Django and have all the basics covered. It's nice to have options when needed though.
Comment by viiralvx 1 hour ago
Also, good to see first class support for Tasks, among a lot of other niceties!
Comment by ChrisArchitect 9 hours ago
Comment by jasoncartwright 9 hours ago
Comment by nine_k 8 hours ago
It makes me sad when a secondary meaning, which does not even overcome the main meaning in usage, becomes an obstacle for the normal use of a word. It's like seeing a rainbow as a sexualized symbol not fit for children, because it also happens to be used by LGBTQ+ community. (BTW, since you're a Brit: did people stop using the word "fag" to refer to a cigarette?)
Comment by bigstrat2003 8 hours ago
Comment by nine_k 5 hours ago
Comment by nine_k 7 hours ago
Comment by tomhow 8 hours ago
These guidelines are relevant here:
Eschew flamebait. Avoid generic tangents. Omit internet tropes.
Please don't pick the most provocative thing in an article or post to complain about in the thread. Find something interesting to respond to instead.
Please don't complain about tangential annoyances—e.g. ... name collisions ... . They're too common to be interesting.
Comment by tdfirth 9 hours ago
Comment by firecall 8 hours ago
Comment by lagniappe 8 hours ago
Comment by nophunphil 8 hours ago
Comment by firecall 5 hours ago
Slightly absurdist non-sensical humour I’ll admit, but none the less, a joke :-)
Comment by diath 8 hours ago
Comment by harshreality 8 hours ago