Revision history [back]
Sorry, I can't give an in-depth answer on uwsgi, but the following configuration works for me:
[uwsgi]
socket = /var/uwsgi/ask_node1.sock
user = www-data
chdir = /srv/ask/node1
logto = /var/log/uwsgi/ask_node1.err
pidfile = /var/uwsgi/ask_node1.pid
pythonpath = /srv/ask
pythonpath = /srv/ask/node1
virtualenv = /srv/ask/node1/env
env = DJANGO_SETTINGS_MODULE=node1.settings
module = django.core.handlers.wsgi:WSGIHandler() #may need to be adjusted depending on the Django version
env = LC_ALL=en_US.UTF-8
threads = 1
workers = 4 #can be adjusted
master = true
max-requests = 1000
harakiri = 120
buffer-size = 24576
Then in the nginx config specify the socket location for the uwsgi_pass
parameter.