Description
WhiteNoise lets a Python web application serve its own static files, so it can be deployed without a separate web server such as nginx or an external storage service such as Amazon S3. It works with any WSGI-compatible app and has automatic configuration for Django. It handles several best practices for you: it serves gzip and Brotli compressed content, sends correct Accept-Encoding and Vary headers, and sets far-future cache headers on files that will not change. The README says it is designed to work well with a CDN for high-traffic sites. It is especially useful on platforms such as Heroku and OpenShift. The package is published on PyPI and its documentation is hosted on Read the Docs. The project is open source and developed on GitHub.…
Highlights
- Serves a Python web app's static files itself
- Works with any WSGI-compatible app, with Django auto-configuration
- Gzip and Brotli compression
- Far-future cache headers for files that do not change
- Designed to work with a CDN
Ratings & Reviews
No ratings yet
Be the first to rate Whitenoise.
People also visit

tigris-static-assets
Deploying static assets (CSS, JS, fonts, build artifacts) to Tigris
Whitenoise FAQ
What does WhiteNoise do?
It serves a Python web app's static files directly from the app, so you do not need nginx or S3 for them.
Does it work with Django?
Yes. The README says it has special auto-configuration features for Django. It also works with any WSGI-compatible app.
Which compression does it use?
Gzip and Brotli, with correct Accept-Encoding and Vary headers.
Where do I install it?
It is published on PyPI, and its documentation is on Read the Docs.
Can it handle high traffic?
The README says it is designed to work with a CDN for high-traffic sites, so you do not have to trade performance for simplicity.
What are the best Whitenoise alternatives?
Popular alternatives to Whitenoise include bundlejs.com, Static.run and Updog. See all Whitenoise alternatives







