I’m trying to deploy my Django app to IIS but the page is just infinitely loading without any error messages. It’s weird. Here’s my web.config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="PythonHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/>
</handlers>
<httpPlatform processPath="c:\inetpub\wwwroot\one-two-api\venv\Scripts\python.exe"
arguments="c:\inetpub\wwwroot\one-two-api\manage.py runserver 0.0.0.0:%HTTP_PLATFORM_PORT%"
stdoutLogEnabled="true"
stdoutLogFile="c:\inetpub\wwwroot\one-two-api\python.log"
startupTimeLimit="60"
processesPerApplication="16">
<environmentVariables>
<environmentVariable name="SERVER_PORT" value="%HTTP_PLATFORM_PORT%" />
</environmentVariables>
</httpPlatform>
</system.webServer>
</configuration>
The error took a while to come up but it was a 502.3 bad gateway with an error code of 0x8007042b.