> Hi! > > I'd like to run multiple apps, each app by its own user and get rid of > virtualenv in favor of "pep370-env" > > I'm trying to add emperor mode to the django + pep370 example. > (http://projects.unbit.it/uwsgi/wiki/Example) > > My problem is that uWSGI can't find the WSGIHandler > ** ImportError: No module named django.core.handlers.wsgi > > I understand why this is happening but don't know how to give uWSGI > the correct PYTHONUSERBASE. > > My last configuration follows. > Thank you. > > # more /etc/uwsgi/emperor.ini > > [uwsgi] > emperor = /etc/uwsgi/vassals > emperor-tyrant = true > > # more /etc/uwsgi/vassals/myapp.ini > > [uwsgi] > chdir = /var/python/myuser/myapp > env PYTHONUSERBASE=/var/python/myuser/.local
Assuming django is correctly installed in the userbase, you only need to fix the syntax: env PYTHONUSERBASE=/var/python/myuser/.local to env = PYTHONUSERBASE=/var/python/myuser/.local -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
