web/ldt/core/handlers/modpython.py
author ymh <ymh.work@gmail.com>
Mon, 18 Apr 2011 16:28:20 +0200
changeset 142 77fdf5d1786c
parent 100 c5514a2bfdcd
permissions -rw-r--r--
Added tag V00.32 for changeset ebca39584596
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
def handler(req):
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
    activate_this = req.get_options().get("virtualenv.activate_path")
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    execfile(activate_this, dict(__file__=activate_this))    
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
100
c5514a2bfdcd - error correction on login template
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
     6
    import django.core.handlers.modpython
0
cc4a51750724 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
100
c5514a2bfdcd - error correction on login template
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
     8
    return django.core.handlers.modpython.handler(req)