gunicorn is a WSGI HTTP server that helps deploy various Python applications with servers like Nginx. It support Django, Pylons (paster) or other WSGI Python applications.
You can install gunicorn from sources or using PyPi: easy_install -U gunicorn. In doc/htdocs/ subfolder (you can get the sources) we will find documentation and various examples.
Django, gunicorn and NGINX
Here is the most basic configuration for a Django project. Open terminal and go to Django project folder and execute:gunicorn_django --workers=2
Next configuje Nginx:
Set the path to your Django projet to get static files support and start up Nginx - your Django project should be alive on localhost. In the gunicorn documentation you will find other examples using sockets or start/stop bash scripts. Everything easy and fast to deploy.
