将PythonHome设置为/home/appuser/Env/myproject Django uwsgi ImportError:没有名为si的模块

2024-04-30 04:30:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用uwsgi和nginx来部署django项目,我不熟悉这种服务器端配置,我正在使用本文https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04。 执行以下命令后

uwsgi --http <my_server_ip>:8080 --home /home/appuser/Env/myproject --chdir /home/appuser/myproject -w myproject.wsgi

我得到了这个错误:将PythonHome设置为/home/appuser/Env/myproject ImportError:没有名为site的模块 类似的问题有很多,但我没有找到任何解决办法


Tags: 项目djangohttpscommunityenvcomhomemyproject