0

Primero que todo, disculpen si tengo algun error en la formulacion de la pregunta, esto arracando en este mundo.

Tengo este error en la implementacion de mi proyecto web django en el iis Windows Server 2012.

Hice la misma implementacion en una maquina virtual y anduvo perfectamente, cuando lo quiero implementar el servidor real me arroja este error.


Error occurred while reading WSGI handler:

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


StdOut: 

StdErr:

Archivo web.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="Python FastCGI" path="*" verb="*" modules="FastCgiModule" scriptProcessor="C:\Python310\python.exe|C:\Python310\lib\site-packages\wfastcgi.py" resourceType="Unspecified" requireAccess="Script" />
    </handlers>
  </system.webServer>

  <appSettings>
    <add key="PYTHONPATH" value="C:\inetpub\wwwroot\ComprasInternas" />
    <add key="WSGI_HANDLER" value="ComprasInternas.wsgi.application" />
    <add key="DJANGO_SETTINGS_MODULE" value="ComprasInternas.settings" />
  </appSettings>
</configuration>

introducir la descripción de la imagen aquí

0

0

Tu Respuesta

Al pulsar en “Publica tu respuesta”, muestras tu consentimiento a nuestros términos de servicio, política de privacidad y política de cookies

Examina otras preguntas con la etiqueta o formula tu propia pregunta.