# Python projects now support routing rules

By Steven Van · 2026-08-26

Python projects can now use routing rules to set response headers or rewrite requests to internal paths, including apps built with FastAPI, Django…

[Vercel](<https://creatorstoolbox.com/tools/vercel>) now supports routing rules for Python projects, including apps built with FastAPI, Django, and Flask. Rules can set response headers or rewrite requests to internal paths, and the Vercel CDN evaluates them before requests reach the application, so a published rule applies without a new deployment.

Rewrites can be created and published from the CDN tab in the project dashboard, from the Vercel CLI, or from Python via the vercel SDK, which wraps the Vercel REST API. Published rules take effect immediately across all regions, and previous versions can be restored from the History tab. Rewrites can also still be defined in vercel.json, but project-level rules are evaluated first, so a published rule takes precedence over a vercel.json rewrite for the same path.

Read the [announcement](<https://vercel.com/changelog/python-projects-now-support-routing-rules>) for setup examples, and update the Vercel CLI to the latest version to get started.

[![](<https://assets.vercel.com/image/upload/contentful/image/e5382hct74si/6iH2lmuMHhZ7zUdi5jU1dt/3e3dbcd5b8b6f888f1fcb1bdd15ad71b/python_projects_support_routing_rules_og_card.jpg>)](<https://vercel.com/changelog/python-projects-now-support-routing-rules>)

![Vercel](<https://www.google.com/s2/favicons?domain=vercel.com&sz=128>)

Vercel

The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.

[View Vercel →](<https://creatorstoolbox.com/tools/vercel>)

Sources

[Original source](<https://vercel.com/changelog/python-projects-now-support-routing-rules>)

[Read Python projects now support routing rules on Creators Toolbox](<https://creatorstoolbox.com/blog/vercel-python-projects-now-support-routing-rules>)

---
Canonical source: https://creatorstoolbox.com/blog/vercel-python-projects-now-support-routing-rules
