Django: What's new in 6.0 – Adam Johnson

Django 6.0 brings reusable bits; fans hype, celery fights

TLDR: Django 6.0 arrives with template partials for easy reuse of page bits. Commenters praised the React-like feel and Adam Johnson’s tools, but a sharp debate over background tasks—Celery versus Django‑Q2—stole the show, with a lively HN thread and a flagged comment underscoring how much these choices impact real apps.

Django, the 20-year-old Python web framework, dropped version 6.0 and the crowd went loud. The star feature: template partials—tiny reusable chunks inside a page—had one commenter cheering, “this is why React wins,” suggesting Django just adopted the component lifestyle. Adam Johnson’s post also plugged his upgrade helper, and fans practically bowed: “Anything Adam writes? Read it.”

But the party turned into a kitchen fight over background job tools. One fan praised the new tasks direction, then threw shade: “Sad to see the great Django‑Q2 lumped with the awful Celery.” That sparked the old queue wars: do we bless Celery (a popular task runner), or back friendlier alternatives? A HN thread kept the popcorn flowing, and even a [flagged] comment teased spicy takes that didn’t survive. Memes landed fast: “React‑ifying Django,” “component life,” and “celery slander.” Meanwhile, devs drooled over partials refreshing live with tools like htmx (auto‑updating bits of a page). Verdict from the stands: partials are a win, Adam is a hero, and the task drama is the mess we can’t look away from.

Key Points

  • Django 6.0 has been released, introducing new features to the Python web framework.
  • The Django Template Language now supports template partials via {% partialdef %} and {% endpartialdef %} tags.
  • Partials can be reused within the same template and support an inline option to render definitions in place.
  • Partials can be rendered in isolation using a template name fragment syntax (e.g., template.html#partial).
  • The django-upgrade tool can automate updates and fix deprecation warnings for projects upgrading from Django 5.2 or earlier.

Hottest takes

“Template partials look good… because you can reuse small segments of code” — giancarlostoro
“I am sad to see the great Django-Q2 lumped in with the awful Celery” — teagee
“[flagged]” — jasoncartwright
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.