Re:Is Nginx obsolete now that we have Amazon CloudFront?
by gojomo on Monday July 30, 2012 @06:49PM
(#4315100)
Yes, but I wasn't talking about the admonitions against runserver -- I was talking about the admonitions against the staticfiles app.
I propose that staticfiles under gunicorn is a reasonable choice. Further, if fronted by a inbound proxy cache, it could perhaps even be the reference/recommended setup for high-volume production sites, rather than the current doctrine that such sites should have some extra static-collect/export to a helper server.
Nor should it be. There are plenty of WSGI capable web servers that can be installed into a Django project as apps.
If you want to run just Django behind a frontside cache and server static media from the same connection, simply install an appropriate app. Gunicorn and cherrypy both 'drop in replacements' for the built in runserver and both well up to the task.