NGINX Cookbook
上QQ阅读APP看书,第一时间看更新

Getting ready

Django interfaces to NGINX through a Web Server Gateway Interface (WSGI). For Django, one of the most commonly used WSGI interfaces is uWSGI.

If you haven't installed uWSGI yet, the best way is to install the latest version via pip:

apt-get install python-pip python-dev
pip install uwsgi

We're going to simply use a base install of the latest version of Django, which at the time of writing this book was 1.10.5.