403 error occurred in win server2008+IIS7 installation django environment

due to the business need to assemble the django environment in the win server2008+IIS7 environment, the Python related libraries are installed normally and the, django runserver is running normally.
after installing wfastcgi, add the web.config, code to the root directory of the django project as follows:

<?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <handlers>
                <add name="Python FastCGI" 
                     path="*" 
                     verb="*" 
                     modules="FastCgiModule" 
                     scriptProcessor="c:\python\python.exe|c:\python\lib\site-packages\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="D:\wwwroot\yzf\MyDjango\MyDjango" />
            <add key="DJANGO_SETTINGS_MODULE" value="MyDjango.settings" />
        </appSettings>
    </configuration>

the python directory was added to the full permissions of iis_User after the 500th error was resolved
HTTP error 403.14-Forbidden
the Web server is configured not to list the contents of this directory.

DirectoryListingModule 
ExecuteRequestHandler 
StaticFile 
0x00000000 

 URLhttp://xxx.xxx.xxx.xxx:8090/ 
D:\wwwroot\yzf\MyDjangoMyDjango
 
 

ask me if I have made a mistake or missed a step. I"m really not familiar with IIS.. Ask for big hands

Menu