Hi,
Apparently it doesn't work... any idea?
* there are two files. wsgitest.py and test.py
* run site-packages\win32\lib\win32traceutil.py to see the errors.
* install/remove : wsgitest.py install/remove
* access at http://localhost/wsgitest/
--------------------- wsgitest.py (the isapi wrapper)
import sys
sys.path.insert(0,r'C:\Apps\Projects\wsgitest')
if hasattr(sys, "isapidllhandle"):
import win32traceutil
try:
reload(test)
except:
import test
appdir = 'C:/Apps/Projects/wsgitest'
import isapi_wsgi
def __ExtensionFactory__():
return isapi_wsgi.ISAPISimpleHandler(app = test.app.wsgifunc())
if __name__=='__main__':
from isapi.install import *
params = ISAPIParameters()
sm = [
ScriptMapParams(Extension="*", Flags=0)
]
vd = VirtualDirParameters(Name="wsgitest",
Description = "wsgitest app running via
ISAPI-WSGI",
Path = appdir.replace('/','\\'),
ScriptMaps = sm,
ScriptMapUpdate = "replace"
)
params.VirtualDirs = [vd]
HandleCommandLine(params)
---------------------- test.py
#!/usr/bin/python
import web
web.config.debug = False
urls = (
'/.*', 'index'
)
app = web.application(urls, globals())
class index:
def GET(self):
return "Hello, world!"
if __name__ == "__main__":
app.run()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---