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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
def handler(req):
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
    activate_this = req.get_options().get("virtualenv.activate_path")
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    execfile(activate_this, dict(__file__=activate_this))    
4
7c994c98d1df change ldt.ldt to ldt.ldt_utils
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     5
7c994c98d1df change ldt.ldt to ldt.ldt_utils
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     6
    import django.core.handlers.modpython
7c994c98d1df change ldt.ldt to ldt.ldt_utils
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     7
0
ecdfc63274bf first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    return django.core.handlers.modpython.handler(req)