IIS Django localhost opens list of directories

Viewed 28

I am trying to deploy a Django app on IIS.

After a few days of FINALLY getting HTTP Platform Handler to work now i face another problem right now when i go to local host i see a list of files in my Django app. how do i make it start the Django app right away.

i am using HTTP Platform Handler.

enter image description here

<?xml version="1.0" encoding="UTF-8"?>
     <configuration>
         <system.webServer>
             <handlers>
                 <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"
 requireAccess="Script" />
             </handlers>
             <httpPlatform startupTimeLimit="10" startupRetryCount="10" stdoutLogEnabled="true"
 processPath="C:\Python310\python.exe"
 arguments="manage.py runserver">
                 <environmentVariables>
                     <environmentVariable name="foo" value="bar"/>
                 </environmentVariables>
             </httpPlatform>
         </system.webServer>
     </configuration>

when i disable directory browsing i get an error.

enter image description here

0 Answers
Related