web/ldt/core/handlers/modpython.py
author ymh <ymh.work@gmail.com>
Sat, 12 Jun 2010 04:25:05 +0200
changeset 0 cc4a51750724
child 91 9c83809fda01
permissions -rw-r--r--
first commit


def handler(req):
    activate_this = req.get_options().get("virtualenv.activate_path")
    execfile(activate_this, dict(__file__=activate_this))    

    import django.core.handlers.modpython

    return django.core.handlers.modpython.handler(req)