django-upgrade
Automatically upgrade your Django project code.
Decision gist · record as of 2026-08-14
Yes. django-upgrade is actively maintained, has no security vulnerabilities, installs with minimal friction, and solves a real problem for Django teams managing version upgrades. The MIT license is permissive. Install it if you maintain a Django project and want to reduce the manual work of keeping code aligned with current Django versions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction install with a single runtime dependency.
- Active maintenance with recent releases and a solid community signal (1228 stars); last commit on 2026-08-13 indicates ongoing development.
License · maintenance · safety
MIT (permissive) — MIT license permits use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-06-25 (50 days) · last repo commit 2026-08-13 · 1,228 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 561,754 downloads/mo, #5,993 on PyPI
Alternatives
Verify before relying
pip install django-upgrade
django-upgrade --target-version 5.0 path/to/django/code- Specific upgrade rules and which Django versions are supported as targets beyond the framework classifiers listed.
- Whether the tool modifies files in-place or requires review before applying changes.
What it is and what it does
django-upgrade is a command-line tool that automatically refactors Django project code to use modern syntax and APIs. It scans your codebase and applies transformations that align with newer Django versions, removing deprecated patterns and updating function calls to their current equivalents. This saves manual effort when upgrading large projects across multiple Django versions.
The tool depends on tokenize-rt for safe token-level code manipulation. It targets Django versions from 2.2 through 6.0 and runs on Python 3.10 or later. With active maintenance and broad version support, it's designed to handle the friction of keeping Django codebases current as the framework evolves.
Use it for
- Bulk-upgrade a Django 3.2 project to Django 5.0 syntax and APIs in a single pass.
- Remove deprecated Django ORM calls and template tags across a large codebase automatically.
- Prepare a legacy Django project for a major version jump by applying intermediate upgrade rules.
- Enforce modern Django patterns in a team codebase during a scheduled maintenance window.
- Reduce manual code review effort by automating repetitive deprecation fixes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
django-upgrade is actively maintained, has no security vulnerabilities, installs with minimal friction, and solves a real problem for Django teams managing version upgrades. The MIT license is permissive. Install it if you maintain a Django project and want to reduce the manual work of keeping code aligned with current Django versions.
Install
django-upgrade on PyPI
Before you install
Low friction install with a single runtime dependency. Active maintenance with recent releases and a solid community signal (1228 stars); last commit on 2026-08-13 indicates ongoing development.
Requires Python 3.10 or later.
License in practice
MIT license permits use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install django-upgrade
django-upgrade --target-version 5.0 path/to/django/code
Verify before relying
- Specific upgrade rules and which Django versions are supported as targets beyond the framework classifiers listed.
- Whether the tool modifies files in-place or requires review before applying changes.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetokenize-rt |
| Maintenance | Actively maintained 50 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 561,754 / month, #5,993 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: Django :: 2.2Framework :: Django :: 3.0Framework :: Django :: 3.1Framework :: Django :: 3.2Framework :: Django :: 4.0Framework :: Django :: 4.1Framework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed |
Evidence: django_upgrade-1.31.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django code modernization”
- django-upgradeAutomatically modernizes Django project code by applying syntax and…
- django-unfoldReplaces Django's default admin interface with a modern, Tailwind…
- fissixfissix is a backport of Python's lib2to3 library with enhancements,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also django-click · django-model-utils · django-test-plus · cwl-upgrader · django-lifecycle · django-nine · djade · django-clone · django-dirtyfields · django-deprecate-fields