Django 4.0.x
Support ended 2023-04-01
This series of Django releases was supported from 2021-12-07 to 2023-04-01.
Release Highlights
- Django’s default timezone implementation is now
zoneinfofrom the Python standard library (as of Python 3.9).- Support for
pytzand use of pytz time zones is now deprecated and will be removed in Django 5.0.
- Support for
- Forms, Formsets and ErrorList are now rendered using the template engine
- There’s now built-in support for Redis caching via redis-py 3.0.0 or higher.
Upgrade Gotchas
- Official support for Python 3.6 and 3.7 has been dropped. Officially supported Python versions are now 3.8, 3.9, and 3.10.
- If you’re coming from Django 3.2 (which supported Python 3.6-3.10), note that
zoneinfo(see above) is only in the Python standard library as of Python 3.9. So you’ll probably want to upgrade to at least that version of Python if you’re going to Django 4.0 - It’s worth repeating/rephrasing: support for
pytzis now deprecated and will be removed in Django 5.0. You can still usepytzin Django 4.0 if you want, or, you can go the Python 3.9/zoneinforoute now and avoid future upgrade hassles in Django 5.0
- If you’re coming from Django 3.2 (which supported Python 3.6-3.10), note that
- Dropped support for PostgreSQL 9.6 and Oracle 12.2 and 18c. Django 4.0 supports PostgreSQL 10.0+ and Oracle 19c
- minimum supported version of
psycopg2is now 2.8.4, since it’s the first release to support Python 3.8
- minimum supported version of
- Multiple features deprecated in Django 3.0 and 3.1 have been removed in 4.0
- Python 3.8
- Python 3.9
- Python 3.10
Released Versions
| Version | Release Date | Release Type | Blog Post | Release Notes | GitHub |
|---|---|---|---|---|---|
| 4.0.10 | 2023-02-14 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 4.0.9 | 2023-02-01 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 4.0.8 | 2022-10-04 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 4.0.7 | 2022-08-03 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 4.0.6 | 2022-07-04 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 4.0.5 | 2022-06-01 |
BUGFIX
|
Blog Post | Release Notes | GitHub |
| 4.0.4 | 2022-04-11 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 4.0.3 | 2022-03-01 |
BUGFIX
|
Blog Post | Release Notes | GitHub |
| 4.0.2 | 2022-02-01 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 4.0.1 | 2022-01-04 |
SECURITY
|
Blog Post | Release Notes | GitHub |
| 4.0 | 2021-12-07 |
RELEASE
|
Blog Post | Release Notes | GitHub |
| 4.0rc1 | 2021-11-22 |
RC
|
Release Notes | GitHub | |
| 4.0b1 | 2021-10-25 |
BETA
|
Release Notes | GitHub | |
| 4.0a1 | 2021-09-21 |
ALPHA
|
Release Notes | GitHub |