我正在尝试在Microsoft Azure上托管的Windows Server VM上运行Django应用程序。我正在使用Python 3.6。
我已经在本微软教程(https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/python-django-web-app)中完成了所有配置,但仍然收到错误消息:
“HTTP错误500.0 - 内部服务器错误”“未知的FastCGI错误 发生“
这是我的web.config:
<configuration>
<appSettings>
<add key="WSGI_HANDLER" value="django.core.handlers.wsgi.WSGIHandler()" />
<add key="PYTHONPATH" value="C:\inetpub\wwwroot\tb_product" />
<add key="DJANGO_SETTINGS_MODULE" value="tb_project.tb_project.settings" />
</appSettings>
<system.webServer>
<handlers>
<add name="Python FastCGI"
path="*"
verb="*"
modules="FastCgiModule"
scriptProcessor="c:\users\giorgecaique\appdata\local\programs\python\python36-32\python.exe|c:\users\giorgecaique\appdata\local\programs\python\python36-32\lib\site-packages\wfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
</system.webServer>
</configuration>
任何人都可以帮助我吗?
干杯!