On a fairly vanilla FreeBSD system without virtualenv, I'm having trouble getting uwsgi to work with Django.
Attempting to run generates this error:
Traceback (most recent call last):
File "./myapp/wsgi.py", line 3, in <module>
from django.core.wsgi import get_wsgi_application
ImportError: No module named django.core.wsgi
unable to load app 0 (mountpoint='') (callable not found or import error)
myapp/wsgi.py is not modified from stock. My ini file:
[uwsgi]
chdir = /usr/local/www
module = myapp.wsgi:application
master = true
processes = 1
socket = /var/run/django.sock
pidfile = /var/run/django.pid
vacuum = true
uid = www
gid = www
enable-threads = true
My research only shows problems related to virtualenv which I'm not using. Any ideas what could be going on? Using Python 3.4 and latest uwsgi from ports. Running from django.core.wsgi import get_wsgi_application
in a Python shell yields no errors.