web/ldtplatform/modwsgi.wsgi
changeset 147 a9bddd86aa25
parent 142 0b2f32965787
equal deleted inserted replaced
146:e2d3fa7aad7c 147:a9bddd86aa25
    23         g_env_set = True 
    23         g_env_set = True 
    24 
    24 
    25     import django.core.handlers.wsgi
    25     import django.core.handlers.wsgi
    26 
    26 
    27     _application = django.core.handlers.wsgi.WSGIHandler()
    27     _application = django.core.handlers.wsgi.WSGIHandler()
       
    28     
       
    29     if environ.get('PYDEV_DEBUG', "False").lower() in ["true", "1", "t"]:
       
    30         import pydevd #@UnresolvedImport
       
    31         pydevd.settrace(suspend=False)
       
    32 
    28 
    33 
    29     return _application(environ, start_response)
    34     return _application(environ, start_response)
    30         
    35