How to fix the error with uwsgi.ini in your Django project?

Good day!
Actually when you run uwsgi.ini was faced with the following error:

Traceback (most recent call last):
 File "./project/wsgi.py", line 12, in <module>
 from django.core.wsgi import get_wsgi_application
ImportError: No module named 'django'
unable to load app 0 (mountpoint=") (callable not found or import error)
*** no app loaded. going in full dynamic mode ***</module>


The file uwsgi.ini
[uwsgi]
chdir = /home/django/project
module = project.wsgi
master = true
processes = 10
socket = /home/django/project/deployment/project_nginx.sock
chmod-socket = 666
vacuum = True


Most likely the problem is the lack of virtualenv. But if this is the case, can we do without it? Project one, so to put it [the environment] doesn't make any sense.
June 14th 19 at 18:10
2 answers
June 14th 19 at 18:12
Solution
ImportError: No module named 'django'

uwsgi does not see django. To install django in your system Python libraries or to specify the path to it in PATH
June 14th 19 at 18:14
I understand emperor mode:
I have this :
[uwsgi]
project = my_project_name
base = /home/my_name
chdir = %(base)/%(project)
home = %(base)/Env/%(project)
module = %(project).wsgi:application
master = true
processes = 5
socket = %(base)/%(project)/%(project).sock
chmod-socket = 664
vacuum = true

I think you variable home does not have.

Find more questions by tags DjangouWSGI