Below is my barebones wsgi app...

I dont have wsgi installed on my dev server...but I cant get it to
work on webfaction...

If the code is right or wrong....please let me know....

#!/usr/local/bin/python2.5
import web

web.internalerror = web.debugerror
urls=('/','index')

class index:
    def GET(self):
        web.header("Content-Type","text/html; charset=utf-8")
        return "WSGI Test"

if __name__ == "__main__":
    web.webapi.internalerror = web.debugerror
    app = web.application(urls, globals()).wsgifunc()


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to