web/ldt/core/handlers/modpython.py
author ymh <ymh.work@gmail.com>
Thu, 28 Oct 2010 00:37:07 +0200
changeset 19 cbc514bab5bf
parent 1 eb9188f2ee4f
permissions -rw-r--r--
Added tag V00.06 for changeset b9c2a90029e7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
eb9188f2ee4f first commit
wakimd
parents:
diff changeset
     1
eb9188f2ee4f first commit
wakimd
parents:
diff changeset
     2
def handler(req):
eb9188f2ee4f first commit
wakimd
parents:
diff changeset
     3
    activate_this = req.get_options().get("virtualenv.activate_path")
eb9188f2ee4f first commit
wakimd
parents:
diff changeset
     4
    execfile(activate_this, dict(__file__=activate_this))    
eb9188f2ee4f first commit
wakimd
parents:
diff changeset
     5
eb9188f2ee4f first commit
wakimd
parents:
diff changeset
     6
    import django.core.handlers.modpython
eb9188f2ee4f first commit
wakimd
parents:
diff changeset
     7
eb9188f2ee4f first commit
wakimd
parents:
diff changeset
     8
    return django.core.handlers.modpython.handler(req)