6 ms·
> a static files pipeline for Django with whitenoise, how is that not included by default? It is. They have a file server in debug mode and recommend something
by Jaxkr 1y ago
> a static files pipeline for Django with whitenoise, how is that not included by default?
It is. They have a file server in debug mode and recommend something like nginx for serving files in production (and provide a collectstatic command to make that easy).
People shouldn’t be using a WSGI server to serve static media. Whitenoise shouldn’t exist.
- tinodb 1y agoPlenty of websites can live with the reduced complexity of having their static files served directly by python. Hence it exists, and is useful.
- Jaxkr 1y agoI came back to this thread after realizing I whitenoise would solve my current problem... I'm working on a small internal tool using Django. When I turned debug off, my files stopped serving. And for this small deployment, I really don't want to have to require a separate nginx server. I get it now.