How to use Django with uWSGI

Image of the article: How to use Django with uWSGI

Prerequisite: uWSGI

 

The uWSGI wiki describes several installation procedures. Using pip, the Python package manager, you can install any uWSGI version with a single command. For example:

 

# Install current stable version.

$ pip install uwsgi

 

# Or install LTS (long term support).

$ pip install https://projects.unbit.it/downloads/uwsgi-lts.tar.gz

 

uWSGI model

 

uWSGI operates on a client-server model. Your Web server (e.g., nginx, Apache) communicates with a django-uwsgi “worker” process to serve dynamic content.

 

Configuring and starting the uWSGI server for Django

 

uWSGI supports multiple ways to configure the process. See uWSGI’s configuration documentation...

(Continue reading here: https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/uwsgi/ )