I have a server with FreeBSD 10.1 installed. I want to deploy a Django site on it using uwsgi+nginx+python3 and got some problems.
The site was written for python3, I installed python3.4 then python3 and python from ports, configured nginx and wrote uwsgi ini-file and sock-file. I then tried to start the project. It works perfecttly in virtualenv.
Then I installed uwsgi globally using pip3. But when I try to start the project globally I get the error
no module named site
which means that uwsgi uses python2 instead of 3. What I tried to resolve this problem:
- set DEFAULT_VERSIONS=python=3.4 in make.conf;
- set $PYTHONHOME and $PYTHONPATH to /usr/local/bin/python3;
- change link /usr/local/bin/python from python2 to python3;
It didn't help. How to force uwsgi to use python3 instead of python2?
PS photo of terminal: http://prntscr.com/9os1f2