Live data from Hacker News

Django: what’s new in 6.0

adamj.eu

11–20 of 127 posts

Re: Django: what’s new in 6.0

#14
post #12

Template partials look good, which is one of the key reasons frameworks like React are as good and popular as they are, because you can reuse small segments of code.

But you could already reuse templates in Django by including them. What am I missing?

Check out the HTMX example in the blog, this helped me better understand how it could be used

https://adamj.eu/tech/2025/12/03/django-whats-new-6.0/#rende...

Re: Django: what’s new in 6.0

#15
post #10
post #8

Earlier quoted context omitted.

How is it different from include? Just less files from my perspective

The "inline partials" feature is neat, means you can use and define a partial at the same time. 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...

Yeah, but I was doing the same thing 10 years ago with include mixed with extends and blocks. I can just include a file inside a template or render it directly.

Re: Django: what’s new in 6.0

#17
post #14
post #12

Earlier quoted context omitted.

But you could already reuse templates in Django by including them. What am I missing?

Check out the HTMX example in the blog, this helped me better understand how it could be used https://adamj.eu/tech/2025/12/03/django-whats-new-6.0/#rende...

I'm an avid HTMX user but never did I ever think "I'm using so many includes, I wish I didn't have to use include so much."

What I would like is a way to cut down the sprawl of urls and views.

Re: Django: what’s new in 6.0

#18

[flagged]

Well, https://en.wikipedia.org/wiki/Nonce_word

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?)

Post reply on HN