Django, Nginx, uWsgi Setup

The following are useful configurations for setting up Django on Ubuntu 12.04 with Nginx and uWsgi with ssl encryption.

Nginx config (/etc/nginx/sites-enabled):


uWsgi config (/etc/uwsgi/apps-enabled):


This uses the uWsgi cheaper algorithm which is a really easy and cool way to dynamically scale the uWsgi workers.

These are the basic configuration files, remember to install any project dependencies and check permissions on log directories!

Tim Schnell

Writer of software/english, tech nerd, and genetically predisposed to fight with words instead of actions.