Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Plenty of websites can live with the reduced complexity of having their static files served directly by python. Hence it exists, and is useful.


I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: