File “./ops/wsgi.py”, line 12, in
from django.core.wsgi import get_wsgi_application
ModuleNotFoundError: No module named ‘django’
unable to load app 0 (mountpoint=’’) (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
uWSGI running as root, you can use --uid/–gid/–chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
spawned uWSGI master process (pid: 11587)
spawned uWSGI worker 1 (pid: 11588, cores: 1)
goodbye to uWSGI.
(venv) [root@poes ops]#
在虚拟环境下启动的,提示找不到django,命令可以直接启动没问题,通过配置文件就报这个错,配置文件里也加了虚拟环境路径,是什么原因?