Django-IIS部署-找不到scriptProcessor
我一直在尝试使用IIS部署django应用程序,但在完成所有步骤后,我发现了以下错误Django-IIS部署-找不到scriptProcessor,django,iis,wfastcgi,iis-handlers,Django,Iis,Wfastcgi,Iis Handlers,我一直在尝试使用IIS部署django应用程序,但在完成所有步骤后,我发现了以下错误 <handler> scriptProcessor could not be found in <fastCGI> application configuration 下面是wwwroot文件夹中web.config文件中设置的值 <handlers> <add name="Python FastCGI" path="*&quo
<handler> scriptProcessor could not be found in <fastCGI> application configuration
下面是wwwroot文件夹中web.config文件中设置的值
<handlers>
<add name="Python FastCGI"
path="*"
verb="*"
modules="FastCgiModule"
scriptProcessor="c:\program files\python39\python.exe|c:\program files\python39\lib\site-packages\wfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
有人能帮我解释一下为什么我要面对这个错误。终于解决了这个问题 问题在于scriptProcessor键的值。scriptProcessor的路径有空间,这就是引发错误的原因 最后,我不得不重新安装python,路径之间没有空格,如下所示,并且工作正常
scriptProcessor="c:\python39\python.exe|c:\python39\lib\site-
packages\wfastcgi.py"
有关“为IIS配置Python web应用程序”的信息,您可以参考以下链接:我执行了“仍然不工作”中提到的确切步骤
scriptProcessor="c:\python39\python.exe|c:\python39\lib\site-
packages\wfastcgi.py"