web/ldt/core/handlers/modpython.py
changeset 4 7c994c98d1df
parent 3 651f67b66c51
child 5 ae8593287883
equal deleted inserted replaced
3:651f67b66c51 4:7c994c98d1df
     1 import django.core.handlers.modpython
       
     2 
       
     3 def handler(req):
       
     4     activate_this = req.get_options().get("virtualenv.activate_path")
       
     5     execfile(activate_this, dict(__file__=activate_this))    
       
     6     return django.core.handlers.modpython.handler(req)