{
  "schemaVersion": "ebb.rule.v1",
  "id": "python.package.django-2.1.eol",
  "ecosystem": "python",
  "purl": "pkg:pypi/django",
  "affectedVersions": "vers:pypi/>=2.1|<2.2.dev0",
  "event": "end-of-life",
  "severity": "high",
  "title": "Django 2.1 is end-of-life",
  "summary": "The Django project lists the 2.1 release series as unsupported: it no longer receives security updates or bug fixes, and its end of extended support was December 2, 2019.",
  "replacement": "Django 5.2 LTS or a newer supported release",
  "deadline": "2019-12-02",
  "sources": [
    {
      "title": "Django supported versions",
      "url": "https://www.djangoproject.com/download/#supported-versions",
      "accessedAt": "2026-10-21"
    },
    {
      "title": "Django 2.1 release notes (2.1.15)",
      "url": "https://docs.djangoproject.com/en/2.1/releases/2.1.15/",
      "accessedAt": "2026-10-21"
    },
    {
      "title": "Django upgrade guide",
      "url": "https://docs.djangoproject.com/en/5.2/howto/upgrade-version/",
      "accessedAt": "2026-10-21"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-21",
    "reviewedAt": "2026-10-21",
    "reviewer": "arminazimi"
  },
  "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": [
      {
        "id": "raise-django-requirement",
        "title": "Raise the Django requirement",
        "instructions": "Change the reported Django pin or requirement from 2.1 to the next release series on the upgrade path, ending at a supported series such as 5.2 LTS, then regenerate lock files.",
        "targets": "declaration"
      },
      {
        "id": "apply-release-notes",
        "title": "Apply the release notes",
        "instructions": "For each series crossed, read its release notes for backwards-incompatible changes and deprecations, resolve deprecation warnings, and update code that uses removed APIs.",
        "targets": "usages"
      }
    ],
    "verification": [
      {
        "command": "python manage.py check",
        "purpose": "Run Django's system checks against the upgraded project."
      },
      {
        "command": "python -Wa manage.py test",
        "purpose": "Run the project's test suite with deprecation warnings shown."
      },
      {
        "command": "python -m pip check",
        "purpose": "Confirm the installed distributions have no broken requirements."
      }
    ]
  }
}
