Does anyone have a working example of uWSGI with Django without a Virtual Env?
I'm running the latest stable release without a virtual env. It loads the WSGI
application but then django throws an error that says it cannot import a module
"zwoptexapp.settings". The settings.py file is located in
/var/www/vhosts/zwoptexapp.com/django/zwoptexapp/settings.py. I've put a direct
import statement in the WSGI script and it errors as well.
It just seems like uWSGI isn't setting up the environment properly? Any help
would be greatly appreciated.
UWSGI Run Code:
uwsgi -s /var/run/uwsgi/zwoptexapp.com.sock --pidfile
/var/run/uwsgi/zwoptexapp.com.pid -C -M 4 -w testproject --python-path
/var/www/vhosts/zwoptexapp.com/django --python-path
/var/www/vhosts/zwoptexapp.com/django/zwoptexapp --python-path
/var/www/vhosts/zwoptexapp.com/wsgi
WSGI Script:
import os
import sys
sys.path.append('/var/www/vhosts/zwoptexapp.com/django')
os.environ['DJANGO_SETTINGS_MODULE'] = 'zwoptexapp.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Regards,
Robert Payne
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi