Deploying Django project with gunicorn and Nginx
Easy and fast deployment with gunicorn - a WSGI Python HTTP server and super fast and scalable Nginx server.
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.
Here is the most basic configuration for a Django project. Open terminal and go to Django project folder and execute:
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.
email@example.com. Hosting megiteam.pl.
Site uses third party cookies and traffic analytics. No login or registration is required. Site uses Disqus third party widget for comments.