Re:Django Community Survey
by rattray on Friday May 08, 2015 @08:59AM
(#9511352)
Great idea on deployment, wish I had said the same. PaaS's are great but if there was officially supported boilerplate for supervisor/gunicorn/uwsgi/nginx/postgres, say, on Docker, that would make life terrific.
[ Parent
| on HN ]
That's a great idea! An official docker (and/or AMI?) that has everything set up and optimized, and you just add your project to a specific directory!
Django could release and update with every release.
FYI some people are working on putting a (probably) docker image together for testing purposes. The point being that contributors can test their changes to all backends on their own terms.
I'm hoping it won't be too hard to add a deployment story at the end.
Deployment is a pain. Perhaps some official tutorials would be good in the interim.
An official tutorial would be great in any case, with or without an accompanying Dockerfile!
There is an Apache/mod_wsgi image from the mod_wsgi maintainer. It was pretty easy to set up, and Graham has more in depth documentation on his blog.
https://github.com/GrahamDumpleton/mod_wsgi-docker
I've been evaluating using uwsgi as a stand-alone server. I'm not sure how much load it would support, but I think it's possible get quite far with Django, sqlite, and uwsgi.
Here's an example of a run of the mill 'nginx', 'gunicorn',
'supervisord' setup:
https://github.com/Pakebo/eb-docker-django-simple/blob/maste...