On саб, 01 фев 2014 20:19:02 CET, Giuseppe Saviano wrote:
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.

Did you install Django in that PYTHONUSERBASE?

PYTHONUSERBASE=/var/python/myuser/.local pip install --user Django

[uwsgi]
chdir = /var/python/myuser/myapp
env PYTHONUSERBASE=/var/python/myuser/.local
env = DJANGO_SETTINGS_MODULE=myapp.settings
socket = /tmp/myapp.socket
module = django.core.handlers.wsgi:WSGIHandler()
master = True
vacuum = True




--
дамјан
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to