web/ldt/core/handlers/modpython.py
changeset 91 9c83809fda01
parent 0 cc4a51750724
child 100 c5514a2bfdcd
equal deleted inserted replaced
80:1e7732f40eee 91:9c83809fda01
     1 
     1 
     2 def handler(req):
     2 def handler(req):
     3     activate_this = req.get_options().get("virtualenv.activate_path")
     3     activate_this = req.get_options().get("virtualenv.activate_path")
     4     execfile(activate_this, dict(__file__=activate_this))    
     4     execfile(activate_this, dict(__file__=activate_this))    
     5 
     5 
     6     import django.core.handlers.modpython
     6     import django.core.handlers.wsgi
     7 
     7 
     8     return django.core.handlers.modpython.handler(req)
     8     return django.core.handlers.wsgi.handler(req)