【发布时间】:2017-11-11 10:28:38
【问题描述】:
我已经设置了我的 wsgipythonpath 和 daemonprocess,但是错误日志显示上述错误没有名为 django.core.wsgi 的模块,我正在共享我的 conf,可能是什么错误,以及如何检查 apache 是否可以访问我的django 安装与否。 我可以在本地系统上使用相同的配置进行托管,但不能在远程服务器上进行托管
WSGIPythonPath /home/env_mysite/lib/python2.7/site-packages
<VirtualHost *:80>
ServerName localhost
DocumentRoot /home/unixadmin/PBpy
WSGIScriptAlias / /home/unixadmin/PBpy/PBpy/wsgi.py
WSGIDaemonProcess PBpy python-path=/home/env_mysite/lib/python2.7/site-packages
ErrorLog /home/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory "/home/unixadmin/PBpy">
Require all granted
</Directory>
【问题讨论】:
标签: python django apache hosting mod-wsgi