在II上设置Django项目时出错

2024-10-01 00:22:14 发布

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

我跟踪these steps在IIS8上设置django。直到文档结束,但是当我在端口8003上运行localhost时,我得到了以下错误:

读取WSGI处理程序时出错:

Traceback (most recent call last):
  File "C:\inetpub\wwwroot\Django\[myprojname]\wfastcgi.py", line 710, in main
    env, handler = read_wsgi_handler(response.physical_path)
  File "C:\inetpub\wwwroot\Django\[myprojname]\wfastcgi.py", line 567, in read_wsgi_handler
    return env, get_wsgi_handler(handler_name)
  File "C:\inetpub\wwwroot\Django\[myprojname]\wfastcgi.py", line 538, in get_wsgi_handler
    handler = getattr(handler, name)
AttributeError: 'module' object has no attribute 'wsgi'


StdOut: 

StdErr: 

有人能告诉我为什么它不能给我和教程中显示的一样的输出吗?在


Tags: djangonameinpyenvwsgireadget
1条回答
网友
1楼 · 发布于 2024-10-01 00:22:14

显然,pip install django没有为IIS设置正确的权限来使用它下载的库。在

您需要找到Python文件夹(默认为C:\python27)并强制重置权限,即Replace all child object permissions with inheritable permissions from this object,如下所示: https://serverfault.com/questions/475612/replace-permission-entries-on-all-child-objects-using-icacls

相关问题 更多 >