更新时间:2022-05-21 21:25:49
我加入站点包,在这里我一直Django的子目录(/Library/python/2.7/site-packages),以WSGIDaemonProcess的位置,解决了这个问题:
I solved the problem by adding location of site-packages, where I have kept django subdirectory (/Library/python/2.7/site-packages) to WSGIDaemonProcess:
WSGIDaemonProcess www.example.com processes=2 threads=15 display-name=%{GROUP}
python-path=/Library/python/2.7/site-packages
如果您使用的是的httpd.conf
嵌入式服务器模式中使用:
If you are using embedded server mode use in httpd.conf
:
WSGIPythonPath /Library/python/2.7/site-packages