antoinemartin / django-windows-tools

Django application providing management commands to host Django projects in Windows environments
BSD 2-Clause "Simplified" License
50 stars 13 forks source link

Exception when trying to start the website in IIS #26

Open JVanloofsvelt opened 6 years ago

JVanloofsvelt commented 6 years ago

I'm using Django 1.9.13

Error occurred while reading WSGI handler:

Traceback (most recent call last):
  File "c:\python27\Lib\site-packages\wfastcgi.py", line 791, in main
    env, handler = read_wsgi_handler(response.physical_path)
  File "c:\python27\Lib\site-packages\wfastcgi.py", line 633, in read_wsgi_handler
    handler = get_wsgi_handler(os.getenv("WSGI_HANDLER"))
  File "c:\python27\Lib\site-packages\wfastcgi.py", line 605, in get_wsgi_handler
    handler = handler()
  File ".\ptvs_virtualenv_proxy.py", line 102, in get_virtualenv_handler
    handler = get_wsgi_handler(os.getenv('WSGI_ALT_VIRTUALENV_HANDLER'))
  File ".\ptvs_virtualenv_proxy.py", line 76, in get_wsgi_handler
    handler = getattr(handler, name)
AttributeError: 'module' object has no attribute 

I've been looking for the cause, but couldn't find it yet

I am using a project structure where the settings and root urls.py still reside in a subfolder (Django 1.6 application that I just upgraded to Django 1.9). I have moved the wsgi.py from this subfolder up one level, thinking that might help ...

mrbean-bremen commented 6 years ago

From the call stack it looks like you are using wfastcgi, and the problem appears there. I have no experience with that, and I don't know how it plays with django-windows-tools. Could you give some more information about your setup, specifically how django-windows-tools is involved?