web/ldt_utils/core/handlers/modpython.py
author ymh <ymh.work@gmail.com>
Tue, 08 Jun 2010 15:31:42 +0200
changeset 4 7c994c98d1df
parent 0 web/ldt/core/handlers/modpython.py@ecdfc63274bf
permissions -rw-r--r--
change ldt.ldt to ldt.ldt_utils


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)