Skip to content

[django] Fix vc dev when staticfiles is not used#15772

Merged
msullivan merged 1 commit intomainfrom
django-dev-staticfiles
Mar 31, 2026
Merged

[django] Fix vc dev when staticfiles is not used#15772
msullivan merged 1 commit intomainfrom
django-dev-staticfiles

Conversation

@msullivan
Copy link
Copy Markdown
Contributor

No description provided.

@msullivan msullivan requested review from a team as code owners March 31, 2026 06:10
@msullivan msullivan requested a review from ricardo-agz March 31, 2026 06:10
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 31, 2026

🦋 Changeset detected

Latest commit: b52f30d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@vercel/python-runtime Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

📦 CLI Tarball Ready

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-93ekgnnut.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-93ekgnnut.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

Python Runtime Wheel

A vercel-runtime wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_RUNTIME_PYTHON="vercel-runtime @ https://vercel-93ekgnnut.vercel.sh/tarballs/vercel_runtime-0.12.0.dev1774937422+b52f30d-py3-none-any.whl"

Python Workers Wheel

A vercel-workers wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_WORKERS_PYTHON="vercel-workers @ https://vercel-93ekgnnut.vercel.sh/tarballs/vercel_workers-0.1.0.dev1774937422+b52f30d-py3-none-any.whl"

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 31, 2026

Low Risk — Defensive check — adds early return when staticfiles not installed, preventing import errors.

  • dev.py: added check for staticfiles in INSTALLED_APPS before importing StaticFilesHandler
  • nine-emus-tan.md: changeset for patch release

Assessed at b52f30d.

@github-actions
Copy link
Copy Markdown
Contributor

🧪 Unit Test Strategy

Comparing: 88585eeb52f30d (view diff)

Strategy: Affected packages only

✅ Only testing packages that have been modified or depend on modified packages.

Affected packages - 2 (5%)
  1. @vercel/python
  2. vercel
Unaffected packages - 38 (95%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/build-utils
  4. @vercel/cervel
  5. @vercel/cli-auth
  6. @vercel/client
  7. @vercel/config
  8. @vercel/detect-agent
  9. @vercel/edge
  10. @vercel/elysia
  11. @vercel/error-utils
  12. @vercel/express
  13. @vercel/fastify
  14. @vercel/firewall
  15. @vercel/frameworks
  16. @vercel/fs-detectors
  17. @vercel/functions
  18. @vercel/gatsby-plugin-vercel-builder
  19. @vercel/go
  20. @vercel/h3
  21. @vercel/hono
  22. @vercel/hydrogen
  23. @vercel/koa
  24. @vercel/nestjs
  25. @vercel/next
  26. @vercel/node
  27. @vercel/oidc
  28. @vercel/oidc-aws-credentials-provider
  29. @vercel/python-analysis
  30. @vercel/redwood
  31. @vercel/related-projects
  32. @vercel/remix-builder
  33. @vercel/routing-utils
  34. @vercel/ruby
  35. @vercel/rust
  36. @vercel/static-build
  37. @vercel/static-config
  38. examples

Results

  • Unit tests: Only affected packages will run unit tests
  • E2E tests: Running in parallel via E2E Tests workflow
  • Type checks: Only affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

@msullivan msullivan merged commit e0e5027 into main Mar 31, 2026
187 checks passed
@msullivan msullivan deleted the django-dev-staticfiles branch March 31, 2026 16:57
healeycodes pushed a commit that referenced this pull request Apr 1, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## vercel@50.38.0

### Minor Changes

- Simplify and streamline python builder logic
([#15696](#15696))

- [services] Check vercel.ts also in hasExperimentalServicesConfig
([#15736](#15736))

- Fix django static file serving for manifest storage backends.
([#15709](#15709))

### Patch Changes

- Add more diagnostic trace spans to CLI build command
([#15759](#15759))

- Emit Claude Code plugin hint to stderr when running inside Claude Code
([#15728](#15728))

- Add routing rules reference to the Vercel CLI skill
([#15774](#15774))

- Include context information during `vc ls`
([#15758](#15758))

- Suppress warning message about implicit `public/**/*` builders not
matching ([#15771](#15771))

- Remove storybook detect-projects test referencing deleted example
([#15796](#15796))

- Add `--group-by project` and `--group-by region` flags to `vc usage`
for grouping billing charges by project or region
([#15777](#15777))

- Updated dependencies
\[[`f912eef614731a75ecdca3bee159cc59abd4c58e`](f912eef),
[`6c107f8ea8e84462f2b6ea8c9d548ef650cb458a`](6c107f8),
[`92c858272614b7964705991ba93f171a2b120921`](92c8582),
[`e37942b8fff0fec42afdf5989d0c4a80c36e7363`](e37942b),
[`aed1ef68d1866cce0f4cf8486877e111681b2b63`](aed1ef6),
[`2b7c95c3fc06631b88e70ce6f9ddf9db59ae5692`](2b7c95c),
[`812fbfcbaadd3e7e00cee6a44a9fba442d9b501f`](812fbfc),
[`0e866b330427c95429881314b20649c2f06b4f36`](0e866b3),
[`6cb5c6e1216d7a0dbaa6f740875a36f1b7166900`](6cb5c6e),
[`af261d25a6986785359d151d636c55fabb4c8b47`](af261d2)]:
    -   @vercel/python@6.29.0
    -   @vercel/go@3.4.7
    -   @vercel/next@4.16.4
    -   @vercel/build-utils@13.12.1
    -   @vercel/rust@1.0.6
    -   @vercel/static-build@2.9.7
    -   @vercel/backends@0.0.54
    -   @vercel/elysia@0.1.56
    -   @vercel/express@0.1.66
    -   @vercel/fastify@0.1.59
    -   @vercel/h3@0.1.65
    -   @vercel/hono@0.2.59
    -   @vercel/hydrogen@1.3.6
    -   @vercel/koa@0.1.39
    -   @vercel/nestjs@0.2.60
    -   @vercel/node@5.6.23
    -   @vercel/redwood@2.4.12
    -   @vercel/remix-builder@5.7.2
    -   @vercel/ruby@2.3.2

## @vercel/frameworks@3.22.0

### Minor Changes

- Simplify and streamline python builder logic
([#15696](#15696))

### Patch Changes

- Switch to using smol-toml for toml parsing
([#15730](#15730))

## @vercel/fs-detectors@5.13.0

### Minor Changes

- Simplify and streamline python builder logic
([#15696](#15696))

### Patch Changes

- Updated dependencies
\[[`f912eef614731a75ecdca3bee159cc59abd4c58e`](f912eef),
[`6cb5c6e1216d7a0dbaa6f740875a36f1b7166900`](6cb5c6e)]:
    -   @vercel/frameworks@3.22.0
    -   @vercel/build-utils@13.12.1

## @vercel/python@6.29.0

### Minor Changes

- Simplify and streamline python builder logic
([#15696](#15696))

- Fix django static file serving for manifest storage backends.
([#15709](#15709))

- [django] Don't exclude the /static directory when using staticfiles
([#15705](#15705))

- [django] Only look at STATICFILES_STORAGE value when on a django that
supports it ([#15706](#15706))

- Produce a better diagnostic when Django settings discovery fails
([#15770](#15770))

### Patch Changes

- Always make the path name for a python service be `/index`
([#15773](#15773))

## @vercel/backends@0.0.54

### Patch Changes

- Updated dependencies
\[[`6cb5c6e1216d7a0dbaa6f740875a36f1b7166900`](6cb5c6e)]:
    -   @vercel/build-utils@13.12.1

## @vercel/build-utils@13.12.1

### Patch Changes

- Switch to using smol-toml for toml parsing
([#15730](#15730))

## @vercel/cervel@0.0.41

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/backends@0.0.54

## @vercel/client@17.2.66

### Patch Changes

- Updated dependencies
\[[`6cb5c6e1216d7a0dbaa6f740875a36f1b7166900`](6cb5c6e)]:
    -   @vercel/build-utils@13.12.1

## @vercel/elysia@0.1.56

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.23

## @vercel/express@0.1.66

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.23
    -   @vercel/cervel@0.0.41

## @vercel/fastify@0.1.59

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.23

## @vercel/gatsby-plugin-vercel-builder@2.1.7

### Patch Changes

- Updated dependencies
\[[`6cb5c6e1216d7a0dbaa6f740875a36f1b7166900`](6cb5c6e)]:
    -   @vercel/build-utils@13.12.1

## @vercel/go@3.4.7

### Patch Changes

- Do not hang if the go process panics on startup.
([#15761](#15761))

- [go] update `waitForServer` to not ping root endpoint
([#15765](#15765))

## @vercel/h3@0.1.65

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.23

## @vercel/hono@0.2.59

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.23

## @vercel/koa@0.1.39

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.23

## @vercel/nestjs@0.2.60

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.6.23

## @vercel/next@4.16.4

### Patch Changes

- Copy post-build public files into V3 build output so they are included
in Git-driven deploys
([#15780](#15780))

## @vercel/node@5.6.23

### Patch Changes

- Updated dependencies
\[[`6cb5c6e1216d7a0dbaa6f740875a36f1b7166900`](6cb5c6e)]:
    -   @vercel/build-utils@13.12.1

## @vercel/rust@1.0.6

### Patch Changes

- Switch to using smol-toml for toml parsing
([#15730](#15730))

## @vercel/static-build@2.9.7

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/gatsby-plugin-vercel-builder@2.1.7

## @vercel/python-runtime@0.12.0

### Minor Changes

- Fix django static file serving for manifest storage backends.
([#15709](#15709))

### Patch Changes

- [django] Fix vc dev when staticfiles is not used
([#15772](#15772))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants