news.volyx.in

Django 4.0 (djangoproject.com)

473 points by Spiritus · 1748 days ago · 219 comments on HN

Article summary

Django 4.0 has been released, featuring new improvements such as a RedisCache backend, template engine rendering for Forms and Formsets, and the use of Python's zoneinfo for timezone implementation. The release of Django 4.0 marks the end of mainstream support for Django 3.2, which will continue to receive security and data loss fixes until April 2024. Django 3.1 has reached the end of extended support. The new version can be downloaded from the Django website or the Python Package Index.

Main themes

  • Django 4.0 release
  • web framework choice
  • migration engine
  • async methods
  • choice paralysis
  • runtime characteristics
  • framework comparison

What commenters say

  • Some developers feel overwhelmed by the constant changes in web frameworks and struggle to choose the best one for their needs.
  • Django's migration engine is considered poor by some, while others find it to be one of the framework's strongest features.
  • The choice between different web frameworks, such as Django and Express.js, depends on the specific needs of the project and the preferences of the developer.
  • Some developers prefer a fully-fledged web application framework like Django, while others prefer a micro framework like Express.js.
  • The abundance of choices in web frameworks can lead to choice paralysis, making it difficult for developers to decide which one to use.
  • The runtime characteristics of different platforms and frameworks are often overlooked in discussions, leading to a focus on syntax and features rather than performance and scalability.
  • Some developers believe that the best approach is to pick a framework and stick with it for a certain period, rather than constantly switching between different options.
  • The use of async methods in Django is seen as a positive development, but the current implementation using an 'a' prefix is considered ugly by some.