Django's docs can't be praised enough, they've always been the gold standard that I aspire to, taking a similar approach to documenting my own stuff seriously leveled me up, and great docs written for humans by humans stand out even more amongst the painlessly effortlessly generated slop of the day that's painful and effortful to read.
Template inheritance was so elegant and simple compared to the Java and PHP I was professionally and personally using at the time, but 20 years later and after having used Hono, one thing I'd love to see in Django is... JSX in Python! Imagine:
def Layout(title: str, children):
return (
<html>
<head>
<title>{title}</title>
</head>
<body>
<h1>{title}</h1>
{children}
</body>
</html>
)
def message_list_view(request):
messages = ['Good Morning', 'Good Evening', 'Good Night']
return render(request,
<Layout title="Messages">
<ul>
{[<li>{message}</li> for message in messages]}
</ul>
</Layout>
)