Skip to content
Evergreen Evergreen
Documentation

Django 4.0 is end-of-life

End of life as of 2023-04-01. Replacement: Django 5.2 LTS or a newer supported release. Source: Django supported versions.

Check a version:

evergreen check pkg:pypi/django

The Django project lists the 4.0 release series as unsupported: it no longer receives security updates or bug fixes, and its end of extended support was April 1, 2023.

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status End of life
Severity high
Ecosystem python
Component pkg:pypi/django
Affected versions vers:pypi/>=4.0\|<4.1.dev0
Date from the source 2023-04-01
Replacement Django 5.2 LTS or a newer supported release
Evidence last seen 2026-10-21
Reviewed 2026-10-21 by arminazimi
Review due 2027-10-21 (365 days after the last review)
Rule ID python.package.django-4.0.eol

Sources

Migration

Constraints

  • Preserve models, migrations, settings, URL configuration, templates, and deployment configuration while changing the Django release series.
  • Upgrade one feature release at a time, using the latest patch release of each series, as the Django upgrade guide recommends.
  • Confirm the target Django series supports the Python release in use and that third-party packages support both Django and Python.

Steps

  1. Raise the Django requirement. Change the reported Django pin or requirement from 4.0 to the next release series on the upgrade path, ending at a supported series such as 5.2 LTS, then regenerate lock files.
  2. Apply the release notes. For each series crossed, read its release notes for backwards-incompatible changes and deprecations, resolve deprecation warnings, and update code that uses removed APIs.

Verification

  • python manage.py check: Run Django’s system checks against the upgraded project.
  • python -Wa manage.py test: Run the project’s test suite with deprecation warnings shown.
  • python -m pip check: Confirm the installed distributions have no broken requirements.

Detected by

The python detector. See Detectors and Compatibility.

Other versions of this product

Same ecosystem

Data

This page is generated from registry/python.json, rule python.package.django-4.0.eol, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated