wsgi - django and uwsgi configuration issues -
i trying django project work uswgi , virtualenv
i confused location of of parameters , output of daemon
so far configuration
**[uwsgi] socket=172.26.1.87:8000 chdir=/home/bischofs/1065/1065-calculation-tool/testsite/ module=testsite.wsgi:application master=true pidfile=/tmp/project-master.pid vacuum=true max-requests=5000 #daemonize=/var/log/uwsgi/testsite.log virtualenv=/home/bischofs/1065/python3.4/% **
my question when load
python version: 2.7.8 (default, oct 20 2014, 15:08:52) [gcc 4.9.1] set pythonhome /home/bischofs/1065/python3.4/ *** python threads support disabled. can enable -- enable-threads *** python main interpreter initialized @ 0xfcd820 server socket listen backlog limited 100 connections mercy graceful operations on workers 60 seconds
even though running python3.4 in virtualenv, why not picking on correct interpreter , libraries?
i getting
*** operational mode: single process *** importerror: no module named testsite.wsgi
even though have correct generated wsgi.py file with
import os os.environ.setdefault("django_settings_module", "testsite.settings") django.core.wsgi import get_wsgi_application application = get_wsgi_application()
which makes me think pointed ini file wrong directory.
the uswgi docs not clear directories should pointed to. says /path/to/your/project. mean directory settings.py file? or directory above it?
uwsgi binary application linking specific python library (like apache+mod_wsgi). running in virtualenv changes view of python modules, not python library linked with. using ubuntu package need install plugin python 3 (and load plugin = python3). otherwise activate virtualenv , pip install uwsgi have monolithic version linked virtualenv specific python library.
Comments
Post a Comment