Skip to navigation

Django Deprecation Runway: Plan Framework Maintenance With Claude Code

In short: Find deprecated Django APIs, their documented replacements, and the removal evidence behind an upgrade plan.

Published 20 min read
On this page

Direct answer

Django publishes a deprecation timeline that links each deprecated item to the release notes where it was deprecated and to the version or year it is targeted for removal, and the release process documents the policy behind that timing. A deprecation is evidence, not a migration instruction. The timeline tells you an API is going away; it does not tell you that the replacement is drop-in for your project, and it does not tell you how much project-specific work the swap needs. The concrete win is a maintenance inventory you can sequence from official evidence: what is deprecated, what replaces it, and when it disappears. The concrete loss is that a removal date on a timeline is a documented target, not a promise that every call site converts mechanically, and a project can carry deprecated APIs long after the framework stops shipping them.

Build the inventory from the timeline and the linked release notes before editing code. The upgrade is the last step, not the first.

Why an uninventoried deprecation costs a release

Deprecated APIs fail in a specific way: they work until they do not. A project upgrades Django, the tests pass, and then a minor version later the function is gone and the failure appears in a code path the upgrade did not touch.

Three costs follow. Upgrade time balloons because every deprecation is discovered at once during a version bump instead of being retired on a runway. Risk goes up because a deprecated API removed in a hurry is replaced under deadline pressure, which is where drop-in assumptions do the most damage. Ownership gets blurry because nobody recorded which deprecated calls were load-bearing.

Reading the timeline first reverses all three. Every deprecation becomes a line item with a replacement and a removal target, and the project-specific work becomes visible before a version bump forces it. This post stays on the inventory and the sequencing. Nothing here turns deprecation review into general testing or deployment coverage, and it does not mix Django and Django REST framework release policies, which are separate projects with separate timelines.

Read the Deprecation Timeline

The timeline is the index. Each entry points to the release notes that described the deprecation and states the version or year the removal is targeted for. Reading it produces a list, and the list is the inventory’s spine.

Official, F055: Django’s deprecation timeline links deprecated items to release notes and removal versions or years under the documented release deprecation policy. The timeline is version-sensitive, so a final plan must cite the exact release-note passage it uses rather than relying on a summary.

bash
  # read the timeline for the versions you run and the ones you target
# each entry links to release notes and names a removal target

Read the timeline for two versions: the one you run and the one you target. The entries between them are the runway you have to clear. Entries before the version you run are already removed in your current dependency, so they are either already handled or already broken.

Timeline element What it gives you What you still need
Deprecated item The API going away Whether your code calls it
Linked release notes The passage that deprecated it The replacement and its caveats
Removal target When it disappears Whether your target version is past it

The table works as reading plan. The timeline answers what and when. The release notes answer how and what replaces it. Neither answers whether the replacement fits your project, and that gap is where the honest loss of this post lives.

Follow the Release Process

The release process page documents the deprecation policy that produces the timeline: how long an API stays deprecated, how removal targets are chosen, and what a deprecation warning means in a given release. The policy sits behind the evidence, and reading it prevents misreading the timeline.

Official, F056 context: The release process documents the internal deprecation policy. A Django maintenance inventory that records the deprecated API, the replacement, the first deprecation evidence, the removal target, and unresolved project-specific work is an editorial planning artifact built on that policy, not an official Django migration order.

The policy is what makes the timeline trustworthy. A deprecation is not a random warning; it follows a documented pattern of announcing in one release and removing in a later one. The pattern lets you sequence work instead of reacting to each removal as it lands.

Policy question Where the answer lives Why it matters
How long is an API deprecated Release process page Tells you how much runway a warning implies
How is a removal target chosen Release process page Tells you whether a target is a version or a year
What a deprecation warning means Release notes for that version Tells you whether it is urgent or advisory
What the timeline covers Deprecation timeline page Tells you whether an item is framework or third-party

Use the table as policy map. The distinction the last row protects is the one teams trip on most: Django and Django REST framework deprecate on separate schedules, and conflating them produces a plan with the wrong dates. The guardrail for this topic is explicit about that separation.

Inventory Deprecated APIs

The inventory is a table of what is deprecated in your code. Build it by running the project against a Django version that emits deprecation warnings, recording each one, then joining those warnings to the timeline.

bash
python -W default::DeprecationWarning manage.py test
# surface deprecation warnings during the test run
python -W error::DeprecationWarning manage.py check
# fail the check on any deprecation warning

The first command surfaces warnings without failing. The second fails on any warning, which is the CI posture once the inventory is cleared. Between the two is the inventory work: each warning names an API, and each API joins to a timeline entry.

Inventory field Source Example content
Deprecated API Warning output A function or setting the code uses
Call sites Search of the project Files and lines that use it
Replacement Linked release notes What the framework recommends instead
Removal target Timeline entry The version or year it disappears
Project-specific work Your review Callsite changes the replacement needs

Every row of the table is artifact this post is about. Every row is a deprecation turned into a work item. The last field is the one the framework cannot fill in, and it is the one that decides whether the swap is an afternoon or a sprint. The Python stub drift guide covers a related audit for third-party types, and the Python dependency groups guide covers classifying requirements before moving them. Both apply the same discipline this post applies to framework APIs: inventory before you edit. The Cargo feature unification guide and the Go module compatibility guide apply the same inventory-first reasoning to their own ecosystems, where a dependency contract changes underneath the code that depends on it.

Open the Linked Release Notes

A timeline entry is a pointer. The release notes are the evidence. Opening the notes for the release that deprecated an API gives you the replacement, the reason, and any migration note the framework published.

Release notes element What it tells you Review question
Deprecation description What is going away and why Is your usage the documented pattern?
Replacement What to use instead Is the replacement available in your version?
Migration note How the framework suggests moving Is the migration mechanical for your case?
Removal target When it disappears Is your target version past it?

Approach the table as evidence check. The release notes for a version you are not running still matter, because they describe the deprecation that landed in a version you are running. Reading the notes for the deprecating release and the removal target together is what turns a warning into a plan. The 6.0 and 6.1 release notes are included in this post’s sources as evidence paths, not as a recommendation to upgrade to a specific release. Whether a particular release is right for a project depends on its dependencies and its own runway, and this post does not recommend a version.

Map Replacement Work

A replacement is a swap only when the new API covers everything the old one did for your usage. The framework documents the replacement. Your usage is what you have to check.

Replacement pattern What it covers Project-specific work
New function, same arguments The common case Usually a search and replace
New function, different arguments The documented gap Call-site changes per usage
Setting renamed Configuration Settings files and any docs referencing them
Behavior split across two APIs The hard case Logic changes, not just call sites
No direct replacement The gap the notes flag A design decision, not a swap

Read the table as a triage of the last inventory field. Most rows are mechanical. The last two are where a deprecation becomes a project, and they are the rows that justify building the inventory instead of discovering each deprecation during a version bump.

The honest limit is that deprecation is not proof the replacement is drop-in. The framework deprecates an API because it is going away, and the release notes describe a replacement. Whether that replacement covers your usage is a property of your code, and only your review can answer it.

Sequence Framework Changes

An upgrade is sequenced, not executed. Clearing the deprecation runway before a version bump, and clearing it against the version you are leaving, is what makes the bump itself small.

bash
python -W error::DeprecationWarning manage.py test
# the pass condition once the runway is cleared
python -W default::DeprecationWarning manage.py runserver
# surface warnings during local work before CI enforces them

The sequence that works is inventory, clear, then bump. Every row in the inventory is cleared against the current version, so the upgrade commit contains only version-related changes rather than a tangle of deprecation fixes and version bumps in one diff.

Stage Work Pass condition
Inventory Run with warnings surfaced, join to timeline Every warning has an inventory row
Clear Replace deprecated APIs per release notes No warnings under -W error
Bump Move to the target version Tests and checks pass on the new version
Confirm Re-run inventory on the new version New deprecations are inventoried, not ignored

The table works as runway. The Rails upgrade sequence guide applies the same staging discipline to Rails, and the Angular update guide applies it to Angular. Framework maintenance is the same shape across ecosystems: separate the framework steps from the application edits, or the diff becomes unattributable. The Claude Code overengineering guide describes what happens when those steps are bundled: a version bump that also rewrites every deprecated call site produces a diff nobody can review. Sequencing is the fix.

Record Remaining Unknowns

No inventory that claims completeness is telling the truth. Some deprecations have replacements the release notes describe only partly, some have project-specific work that cannot be sized until it is attempted, and some have removal targets that depend on a version the project has not chosen yet.

Unknown Why it is unknown How to record it
Replacement coverage Only your usage can answer it Mark the row as needing a review
Effort Cannot be sized without attempting Mark as unsized, not as small
Removal target Depends on a version not yet chosen Record the target and the dependency
Third-party interaction A dependency may also use the API Record the dependency, not just your calls

Use the table as honest part of the artifact. The guardrail for this topic is explicit: do not invent a removal date that is not documented. Recording an unknown as unknown is useful. Filling an unknown in with a guess is a defect in the plan. The Claude Code legacy code guide covers the adjacent problem of tribal knowledge around old code, and recording unknowns is the antidote: a deprecation with a named unknown is a work item, and one without is a surprise.

Deprecation and removal evidence table

The evidence table is the artifact worth keeping. The table joins each deprecated API to its deprecation evidence and its removal target, so the next upgrade starts from a table rather than from a warning storm.

Deprecated API First deprecated in Removal target Replacement Evidence
An API your code calls The release that deprecated it The version or year on the timeline What the notes recommend Linked release notes passage
A setting your project sets The release that deprecated it The version or year on the timeline The renamed setting Linked release notes passage

Every row of the table is citation discipline. Each row cites the passage it relies on, which is what F055 requires of a final plan: the timeline is version-sensitive, and a plan that does not cite its passages cannot be checked. The table is also what makes the sequencing conversation concrete, because a row without a removal target is a row that needs a version decision before it needs code. The same evidence discipline appears in Django’s OpenAPI client libraries announcement, which is a roadmap signal rather than a deprecation. Reading it as evidence of direction rather than as a migration deadline is the distinction that keeps a plan honest.

Working across a multi-version jump

A project that skips versions carries deprecations from several timelines at once. Reading the timeline for the version you run and the version you target produces a runway that spans every release in between, and the inventory has to reflect that span.

The multi-version case changes the sequencing. Each intermediate release deprecates its own set of APIs, and a deprecation introduced in an earlier release may reach its removal target before you arrive at the target version. Clearing only the warnings your current version emits leaves removals from later releases undiscovered.

Version position What to read What it contributes
The version you run Its deprecation warnings The runway you can see today
Each release between Its release notes Removals you have not hit yet
The version you target Its upgrading steps What the bump itself requires

Read the table as a span plan. The middle row is the one projects skip, and it is where a surprise removal comes from: an API deprecated in an intermediate release reaches its target before the target version arrives. Citing each intermediate release’s notes is the evidence discipline F055 requires, and it is the reason a multi-version plan is longer to build than a single-version one.

The same span reasoning appears in Rails Upgrade Sequence, which stages a major bump into reviewable steps, and in Angular Update Guide, which selects migration steps from source and target versions. Framework maintenance across a span is the same shape in every ecosystem: read every release you cross, not only the two endpoints.

Silenced warnings are not cleared warnings

A project under pressure silences deprecation warnings. A filter in the settings, a warning-suppression decorator, or a CI flag that downgrades warnings to noise all make the build green without removing the deprecated call. The warning is hidden, and the deprecation is still on the runway.

The difference matters at the version bump. A cleared deprecation is gone from the code, so the bump cannot trip on it. A silenced deprecation is still in the code, so the bump trips on it exactly when there is the least time to fix it. The green build produced by silencing is the false success this batch warns about elsewhere.

Warning state What the build shows What the bump finds
Cleared No warning, no call Nothing to trip on
Silenced No warning, call still present The removal breaks the code
Uninventoried Warning visible Discovery under deadline pressure

Read the table as the reason the runway exists. Cleared is the only state that survives a bump cleanly, and silencing produces the same green build as clearing while leaving the risk in place. The Claude Code false success guide covers the general pattern, and the Claude Code verification guide covers what to ask when a check reports done.

The concrete win, loss, and implication

The concrete win is a version bump you can sequence. When every deprecation is a row with a replacement and a removal target, the upgrade becomes a set of small, reviewable changes rather than a single large diff discovered under deadline.

The concrete loss is that the inventory goes stale. Django releases deprecate new APIs, and a project that clears its runway today accumulates new warnings with the next upgrade. The inventory is a maintenance habit, not a one-time artifact.

The practical implication is that deprecation warnings are a runway, not noise. Teams that clear them before a bump spend less time reversing rushed replacements. Teams that silence warnings to get a green build keep rediscovering the same removals the hard way, and the Claude Code false success guide describes why a silenced warning is not a cleared one.

Working with Claude Code on the runway

Give the agent three inputs: the version you run and the version you target, the commands it may run, and the definition of done. The definition of done is an inventory with a row per deprecation warning, each joined to a timeline entry and a cited release-note passage.

bash
python -W default::DeprecationWarning manage.py test
# ask for the warning list before any edit
python -W error::DeprecationWarning manage.py check
# the pass condition once the runway is cleared

Review the agent’s inventory claim. The agent can read warnings accurately and still propose a swap the release notes do not support, because a mechanical replace is the shortest path to a green check. Deciding whether a replacement covers your usage is a design decision, and the reviewer owns it. The Claude Code verification guide covers what to ask before accepting the change, and the sqlc query annotations guide shows the same review discipline applied to generated code that has drifted from its source.

An upgrade touching many files at once deserves a pause. The Claude Code legacy code guide covers characterization tests for old code paths, and a deprecated API is often exactly the kind of code that needs one before it is replaced.

Evidence map showing the deprecation timeline pointing to release notes for detail and the release process supplying the policy behind removal timing.
Editorial evidence map based on F055 and F056. Django’s timeline points to release notes for detail; the release process supplies the policy behind removal timing.

Checklist before you clear a deprecation

Check Pass condition If it fails
Versions named The version you run and the target are recorded Name both before inventorying
Timeline read Entries between the two versions are listed Read the timeline for both
Release notes opened Each entry’s passage is cited Open the linked notes
Warning inventory built Every warning has a row Run with warnings surfaced
Call sites listed Each deprecated API’s usage is named Search the project
Replacement checked Coverage against your usage is confirmed Review the replacement, not just the notes
Unknowns recorded Unsized or unclear rows are marked Record the unknown, not a guess
Sequenced, not bundled Deprecation fixes and the bump are separate diffs Split the change
Workflow from reading the timeline and release notes through building a warning inventory, clearing it against the current version, then bumping.
Editorial workflow based on F055 and F056. The sequence is a planning routine; exact removal targets depend on the versions named and must be cited from the timeline.

Data gap and future update

The deprecation timeline and the release process page were fetched, and the 6.0 and 6.1 release notes are included as evidence paths. Exact removal targets and deprecation descriptions are version-sensitive, and a final plan must cite the specific passage it relies on rather than a summary. F055 is official and F056 is derived.

No removal date is stated in this post that is not attributed to the timeline or the linked notes, and the guardrail against inventing a removal date applies to any later edit. A future update producing a version-by-version deprecation table would need a citation per row, and no such table was built here.

Django REST framework deprecation is out of scope. Django REST framework is a separate project with a separate release policy, and this post does not merge the two. Third-party package deprecations are also out of scope, because each package maintains its own timeline and this post covers the framework’s.

Tradeoff between a maintained deprecation runway that keeps version bumps small and the ongoing cost of clearing new warnings each release.
Editorial tradeoff diagram based on F055 and F056. A maintained runway keeps upgrades reviewable; the trade is treating deprecation warnings as work items rather than noise.

Framework maintenance appears across this batch. Rails Upgrade Sequence covers ordering major changes into reviewable stages. Angular Update Guide covers producing a project-specific migration checklist from guide inputs.

Packaging and typing boundaries that surround a Django upgrade appear in Python Dependency Groups vs Extras, Python TypedDict Boundaries, and Python Stub Drift. Generated-code boundaries appear in sqlc Query Annotations and OpenAPI Generator Customization.

More from this batch

One AI API Key option for OpenAI-format agents

Claude Code uses an Anthropic-format route, so the One AI free model IDs are not a Claude Code model source. The packet records Claude IDs as unavailable on 2026-11-27.

OpenAI-format agents have a separate route: One AI API Key offers https://api.oneaiapikey.com/v1, one key, and 46 live free IDs. Free IDs are a different client and request format, not a workaround for Claude Code authentication. Check the free model list before choosing an agent route, or read the quickstart for the request shape.

FAQ

Does a deprecation warning mean the API is removed?

No. A deprecation warning means the API is going away and the framework has documented a target for its removal. The timeline and the release notes state that target. Treating a warning as a removal is what makes teams rush replacements the framework has given them runway for.

Is the replacement for a deprecated API drop-in?

Not necessarily. The release notes describe the replacement and any migration note. Whether it covers your usage is a property of your code, and the review of each call site is the step that answers it. Deprecation is evidence, not a migration guarantee.

Should I upgrade Django and fix deprecations in the same change?

No. Clear the runway against the version you are leaving first, then bump. Bundling deprecation fixes with a version bump produces a diff where neither the bump nor the fixes are reviewable, and a failure is hard to attribute.

Can I use the timeline to plan a third-party package upgrade?

Only for the framework. The timeline covers Django’s own APIs. Django REST framework and third-party packages maintain separate timelines, and this post does not merge them. Check each package’s own documentation for its deprecations.

What proves the runway is cleared?

One condition. Running the project with deprecation warnings treated as errors produces no warnings. Silencing a warning hides it; clearing it removes the deprecated call from the code. The check is the difference between the two.

More Claude Code troubleshooting

Sources

Control checklist covering version naming, timeline reading, release note citations, warning inventory, replacement review, and recorded unknowns.
Editorial control checklist derived from F055 and F056. Passing the checklist shows the runway was planned honestly; it does not prove every replacement is drop-in for the project.
Verdict that building a deprecation inventory from the timeline and release notes keeps a version bump small and reviewable.
Editorial verdict based on F055 and F056. Deprecation warnings are a runway. Clear them before the bump, not during it.
More in Blog

Try it

One API key for GPT, Grok, DeepSeek, Kimi, GLM, MiniMax, Qwen, Step, Beam, Nemotron, ERNIE, Hunyuan, Gemma, Laguna, LFM, LongCat, Llama, Solar, Jais, Mistral, K2 and Roleplay.

One AI API Key speaks the OpenAI and Anthropic formats, so you change the base URL and the key, not your code. Credit packs start at $10, and every model has a published per-token rate.

New accounts$10 credit on sign-up
Claim $10 credit →