且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

导入错误:没有模块名为django.core.handlers.wsgi在安装在Apache Django的mod_wsgi的配置

更新时间: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