R
R
rhost2015-03-08 23:31:18
Django
rhost, 2015-03-08 23:31:18

How to fix ImportError: No module named site?

I've been sitting all day, trying to install django on a VPS, please tell me how to fix it ...
everything works on the locale.

[uwsgi]

uid = www-data
gid = www-data

master = true
workers = 4

plugins = python3
home = /home/web/env
chdir = /home/web/src/
socket = 127.0.0.1:8002
wsgi-file = /home/web/src/seller/wsgi.py 
daemonize=/home/web/rest.log
touch-reload = /home/rhost/projects/seller/uwsgi
check-static = /home/rhost/projects/seller/static/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rhost, 2015-03-09
@hoOstel

Did everything again and everything worked.

[uwsgi]
socket = 127.0.0.1:8002
stats = 127.0.0.1:1717

plugins = python3
virtualenv = /home/web/env/
pythonpath: /home/web/env/bin/
chdir = /home/web/src/
env = DJANGO_SETTINGS_MODULE=settings.dev
touch-reload = /home/web/uwsgi
check-static = /home/web/static/
module = seller.wsgi:application

C
Cyrus, 2015-03-09
@Novakuz

Most likely you have a problem with pyhonpath.
uwsgi-docs.readthedocs.org/en/latest/WSGIquickstar...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question