Django 4.0 Ships With a Built-in Redis Cache Backend
Django 4.0 arrived on December 7, 2021 with a native RedisCache backend, template-based rendering for forms and formsets, and zoneinfo as the default timezone implementation.
Historical Archive. This article documents an event from 2021 and is preserved with its original date for reference. It is not current news, and details may have changed since publication.
Django 4.0 lands in December 2021
The Django team announced the release of Django 4.0 on December 7, 2021. As the project's release notes put it, the version covered 'an abundance of new features,' and it also shifted the framework's support timeline, with Django 3.2 reaching the end of mainstream support the same day.
A native Redis cache
The headline for many teams was the new RedisCache backend, which provides built-in support for caching with Redis without a third-party package. It joined Django's existing cache framework as a first-class option for one of the most common production caching setups.
Template-rendered forms and zoneinfo
To ease customization, Forms, Formsets and ErrorList are now rendered using the template engine, making it far simpler to override their markup. Django 4.0 also adopted the Python standard library's zoneinfo as the default timezone implementation, replacing the long-standing dependency on pytz.
Support timeline
With 4.0 out, Django 3.2, an LTS release, entered its security-and-data-loss-fix phase through April 2024, and Django 3.1 reached the end of extended support with a final 3.1.14 security release. The team encouraged all users to upgrade to stay on supported versions.
Related on Skillo
See also: Django 4.2 LTS and psycopg 3, Python 3.11's major speedups.
Sources
Published date reflects the original event date (2021-12-07). This article is original Skillo editorial written from the sources above; facts were verified in September 2026.
Written by
Skillo Staff
0 Comments
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.