Skip to content Skip to sidebar Skip to footer

Problem With Nginx + Uwsgi In Vhost Mode, Running Django App

I have a couple of django apps on my servers, running perfectly on their own socket file, but i plan to introduce some more django apps, so i prefer to run uwsgi in vhost mode, but

Solution 1:

UWSGI_PYHOME will set a virtualenv, so if you are not under a virtualenv you have to remove it. You may be interested in this config: http://projects.unbit.it/uwsgi/wiki/TipsAndTricks


Solution 2:

I don't think it's right to added things in wsgi file. It's actually hard coded if doing that.

What happened if you deploy code to different systems or even different versions of Python? maybe python2.6, python2.7 .etc, so have to append correct sys.path upon deployed server.


Post a Comment for "Problem With Nginx + Uwsgi In Vhost Mode, Running Django App"