Upgrade Django

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

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 pytz is now deprecated and will be removed in Django 5.0. You can still use pytz in Django 4.0 if you want, or, you can go the Python 3.9/zoneinfo route now and avoid future upgrade hassles in Django 5.0
  • 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 psycopg2 is now 2.8.4, since it’s the first release to support Python 3.8
  • Multiple features deprecated in Django 3.0 and 3.1 have been removed in 4.0
  • Security patches

  • Bug fixes

  • Release

  • Alpha

  • Beta

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

Need help upgrading Django? REVSYS can make it easy for your team.