uWsgi, New Relic, Django example configuration files

Posted by on Jan 15, 2013

Since I run all of my Django projects on nginx/uwsgi, I decided to publish my standard deployment config for uWSGI including example settings for integrating New Relic with your app.


If you use New Relic to do any performance monitoring, you can easily invoke the newrelic-admin script via upstart, which you can see in the uwsgi.conf file. Also, New Relic requires threading as it runs in the background, along with a few other configuration settings, so be sure to monitor your system RAM usage.

New Relic/uWsgi guide: https://newrelic.com/docs/python/python-agent-and-uwsgi

uWSGI options breakdown: http://uwsgi-docs.readthedocs.org/en/latest/Options.html

Feel free to fork the project or leave feedback!