私はweb.configファイルのすべてのパスを設定していましたが、IISのすべてを設定していました(Windows Server 2012 R2の場合)。私が終わったら、私はサーバーを始動し、ウェブサイトにアクセスしました。Django + IIS + Wfastcgi読み取りエラー
Error occurred while reading WSGI handler:
Traceback (most recent call last):
File "C:\inetpub\wwwroot\djangoapp\wfastcgi.py", line 711, in main
env, handler = read_wsgi_handler(response.physical_path)
File "C:\inetpub\wwwroot\djangoapp\wfastcgi.py", line 568, in read_wsgi_handler
return env, get_wsgi_handler(handler_name)
File "C:\inetpub\wwwroot\djangoapp\wfastcgi.py", line 551, in get_wsgi_handler
raise ValueError('"%s" could not be imported' % handler_name)
ValueError: "django.core.wsgi.get_wsgi_application()" could not be imported
StdOut:
StdErr:
のWeb.config(ファイル):
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="Python FastCGI"
path="*"
verb="*"
modules="FastCgiModule"
scriptProcessor="C:\Python34\python.exe|C:\inetpub\wwwroot\djangoapp\wfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
</system.webServer>
<appSettings>
<add key="WSGI_HANDLER" value="django.core.wsgi.get_wsgi_application()" />
<add key="PYTHONPATH" value="C:\Python34\python.exe" />
<add key="WSGI_RESTART_FILE_REGEX" value=".*((\.py)|(\.config))$" />
<add key="DJANGO_SETTINGS_MODULE" value="djangoapp.settings" />
</appSettings>
</configuration>
このエラーが発生した理由を私は理解していない。しかしそうしながら、私はこの次のエラーメッセージが表示されました。誰かがこれを解決する手助けや手助けをしていますか?
読んでいただきありがとうございます。