skip to navigation
skip to content

Not Logged In

dj-static-incuna 0.0.6

Serve production static files with Django.

This is a simple Django middleware utility that allows you to properly serve static assets from production with a WSGI server like Gunicorn.

Django doesn’t recommend the production use of its static file server for a number of reasons. There exists, however, a lovely WSGI application aptly named Static.

It is suitable for the production use of static file serving, unlike Django.


Configure your static assets in

STATIC_ROOT = 'staticfiles'
STATIC_URL = '/static/'

Then, update your file to use dj-static:

from django.core.wsgi import get_wsgi_application
from dj_static import Cling

application = Cling(get_wsgi_application())
File Type Py Version Uploaded on Size
dj-static-incuna-0.0.6.tar.gz (md5) Source 2014-06-10 3KB
dj_static_incuna-0.0.6-py2.py3-none-any.whl (md5) Python Wheel 2.7 2014-06-10 4KB
  • Downloads (All Versions):
  • 5 downloads in the last day
  • 46 downloads in the last week
  • 196 downloads in the last month