On May 21, 9:07 pm, Monty808 <[email protected]> wrote:
> 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()

How exactly are you trying to host it? Ie., what web server and if
Apache what module are you use, fastcgi, mod_python or mod_wsgi?

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