import django.core.handlers.modpython

def handler(req):
    activate_this = req.get_options().get("virtualenv.activate_path")
    execfile(activate_this, dict(__file__=activate_this))    
    return django.core.handlers.modpython.handler(req)