# adamchainz/django-upgrade

Automatically upgrade your Django projects.

Repository: https://github.com/adamchainz/django-upgrade
Canonical: https://ross.abutalabs.com/products/django-upgrade
Homepage: https://django-upgrade.readthedocs.io/en/latest/
Language: Python
License: MIT
License Family: permissive
Topics: django
Last push: 2026-08-18T20:38:01+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 1832, "days_push": 15, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1232, forks 80 (observed 2026-08-28T04:04:04.499136+00:00)

## What it is
A Python CLI tool that automatically upgrades Django project code to newer Django versions by rewriting source files. It integrates with pre-commit and applies automated fixes for deprecated or changed Django APIs.

## Use cases
- upgrade django project to a newer version
- automatically fix deprecated django code
- migrate codebase after django version bump
- run django codemods in pre-commit
- update settings and imports for new django releases

## When to choose
- you maintain a Django project upgrading across versions and want automated code fixes
- you want repeatable upgrade fixes wired into pre-commit or CI

## When to avoid
- your project does not use Django
- you need full manual migration guidance rather than automated code rewrites

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, workflow-automation, parser
- domain: web-development, developer-tools
- platform: python, cli, cross-platform
- tags: django, code-upgrade, codemod, pre-commit, migration-tooling, automation

## Member repositories
- adamchainz/django-upgrade (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:04.499136+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:22:20.642485+00:00, confidence not recorded.
  - readme: https://github.com/adamchainz/django-upgrade (fetched 2026-08-28T04:04:04.499136+00:00, sha 45eef7cadc3d)
  - registry_pypi: https://pypi.org/pypi/django-upgrade/json (fetched 2026-08-29T12:22:45.963963+00:00, sha 5589f9b5f23a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
