src/ldt/ldt/core/handlers/modwsgi.py
changeset 1362 df60d20f965c
parent 111 4535dafa6007
equal deleted inserted replaced
1361:5087560b51b6 1362:df60d20f965c
    17         if item not in prev_sys_path: 
    17         if item not in prev_sys_path: 
    18             new_sys_path.append(item) 
    18             new_sys_path.append(item) 
    19             sys.path.remove(item)
    19             sys.path.remove(item)
    20     sys.path[:0] = new_sys_path 
    20     sys.path[:0] = new_sys_path 
    21 
    21 
    22     import django.core.handlers.wsgi
    22     import django.core.wsgi
    23 
    23 
    24     _application = django.core.handlers.wsgi.WSGIHandler()
    24     _application = django.core.wsgi.get_wsgi_application()
    25 
    25 
    26     return _application(environ, start_response)
    26     return _application(environ, start_response)