Ask questionswfastcgi3.0.0 + django 2.1.8 + IIS, WSGI_HANDLER not set

I followed the instructions exactly on the microsoft docs, as well as some youtube videos. Here is my error and my config

Error occurred while reading WSGI handler:

Traceback (most recent call last):
  File "c:\python\lib\site-packages\", line 791, in main
    env, handler = read_wsgi_handler(response.physical_path)
  File "c:\python\lib\site-packages\", line 633, in read_wsgi_handler
    handler = get_wsgi_handler(os.getenv("WSGI_HANDLER"))
  File "c:\python\lib\site-packages\", line 586, in get_wsgi_handler
    raise Exception('WSGI_HANDLER env var must be set')
Exception: WSGI_HANDLER env var must be set


<?xml version="1.0" encoding="utf-8"?>
      <add name="Python FastCGI" path="*" verb="*" modules="FastCgiModule" scriptProcessor="C:\python\python.exe|c:\python\lib\site-packages\" resourceType="Unspecified" requireAccess="Script" />
    <httpErrors errorMode="Detailed" />
    <asp scriptErrorSentToBrowser="true" />
    <customErrors mode="Off" />
    <compilation debug="true" />
      <add key="PYTHONPATH" value="c:\inetpub\wwwroot\project" />
      <add key="WSGI_HANDLER" value="project.wsgi.application" />
      <add key="DJANGO_SETTINGS_MODULE" value="project.settings" />

Answer questions wdifruscio

I worked around this by manually setting the environment variables needed inside, unfortunately this means I will have to do this manually on several django projects. I have not found where my permissions might be wrong.

Thanks regardless!

Github User Rank List