web/ldt/core/handlers/modpython.py
author ymh <ymh.work@gmail.com>
Wed, 20 Oct 2010 11:19:38 +0200
changeset 100 c5514a2bfdcd
parent 91 9c83809fda01
permissions -rw-r--r--
- error correction on login template - slight redesign of login template - put the page and header title in translation
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)