dj-static
Serve production static files with Django.
What it is and what it does
dj-static is a thin middleware wrapper that delegates static file serving to a dedicated WSGI application. The package wraps your WSGI application with Cling middleware to handle static assets in production, requiring only STATIC_ROOT and STATIC_URL configuration. However, the package has been abandoned since 2014-07-11 and its repository is archived, making it a legacy solution with no active maintenance or support.
Use it for:
- Serving static files in production deployments using a WSGI server without relying on the built-in static file handler.
- Wrapping an existing WSGI application to add static file serving with minimal code changes.
- Legacy projects that were built with dj-static and need to maintain the same approach.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Wraps a WSGI application to serve static files in production using a production-ready WSGI static file server, avoiding the built-in static file serving approach.
No. The package is abandoned (last updated 2014-07-11, repository archived) with no path forward for maintenance or security updates. Modern deployments use actively maintained alternatives. Installing this introduces technical debt.
Install
dj-static on PyPI
pip
pip install dj-staticuv
uv add dj-staticpoetry
poetry add dj-staticInstalling dj-static
Before you install
High install friction: the package is abandoned (last commit 2017-09-30, repository archived) and has not been updated since 2014-07-11. No runtime dependencies, but the lack of maintenance for over a decade means compatibility with current tooling is uncertain.
License in practice
BSD license (permissive) means you can use, modify, and distribute freely with minimal restrictions, but you assume all risk given the package's abandoned status.
Quickstart
pip install dj-static==0.0.6
In wsgi.py:
from dj_static import Cling
application = Cling(application)
Package has not been maintained since 2014-07-11; compatibility with current versions of its intended environment is unknown.
Verify before relying
- Compatibility with current versions of the WSGI servers and frameworks it was designed to work with.
- Whether the underlying Static WSGI application it wraps is still maintained or recommended.
- Whether this approach remains a best practice for production static file serving.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 4,417 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 86,312/month — #13,873 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dj-static-0.0.6.tar.gz
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
django-hostsRoutes HTTP requests to different Django URL…
permissive · top 15,000 on PyPI
static3Serves static and templated content over WSGI,…
copyleft · top 15,000 on PyPI
whitenoiseWhiteNoise serves static files directly from a…
permissive · top 5,000 on PyPI
servestaticServeStatic serves static files efficiently…
permissive · top 15,000 on PyPI
PastePaste provides WSGI middleware components for…
permissive · top 5,000 on PyPI
django-dotenvLoads environment variables from a .env file…
permissive · top 15,000 on PyPI
PasteScriptPasteScript is a command-line tool for creating…
permissive · top 15,000 on PyPI
django-configurationsOrganizes Django settings using composable…
permissive · top 15,000 on PyPI
PasteDeployPasteDeploy loads and configures WSGI…
permissive · top 5,000 on PyPI
dj-inmemorystorageAn in-memory storage backend for Django that…
permissive · top 15,000 on PyPI