我跟踪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:
有人能告诉我为什么它不能给我和教程中显示的一样的输出吗?在
显然,
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相关问题 更多 >
编程相关推荐