Registry / web-framework / dj-static

dj-static

JSON →
library0.0.6pypypiunverified

A Django middleware that serves static files in production using the static server from Werkzeug. Current version 0.0.6, no longer actively maintained. Development ceased around 2015.

pip install dj-static
INSTALL
IMPORT
SIG · DJ-STATIC
D
dj-static
web-frameworkpythonv0.0.6
Install
3.2s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.2s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cling
from dj_static import Cling
from dj_static import Cling

Wrap your Django WSGI application with Cling to serve static files in production. Run with a WSGI server like gunicorn.

import os from django.core.wsgi import get_wsgi_application from dj_static import Cling os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') application = Cling(get_wsgi_application())
Debug
Known issues
gotchaImport as 'dj_static' (underscore), not 'dj-static' (hyphen). The package name on PyPI uses a hyphen, but Python module naming conventions use an underscore.
fix
Use 'from dj_static import Cling'.
affects: all
deprecatedThe library is no longer maintained. It relies on the 'static3' package, which itself is unmaintained. Consider switching to WhiteNoise or Django's built-in static file handling with a CDN.
fix
Replace with whitenoise: install 'pip install whitenoise' and follow its documentation.
affects: 0.0.6
breakingOnly works with WSGI servers (e.g., gunicorn, uWSGI). It does not support ASGI.
fix
If using ASGI (Django Channels, Daphne, Uvicorn), use WhiteNoise with ASGI support.
affects: all
Upgrade
Version history
0.0.6latest on PyPI · released Jul 11, 2014
Audit
Dependencies
DjangorequiredCore dependency for serving static files
static3requiredBackend static file server (fork of werkzeug's)
Agent activity
43 hits · last 30 days
node
38
OpenAI (training)
1
Resources
dj-static — pip install dj-static · libregistry