On May 21, 9:41 pm, David Montgomery <[email protected]>
wrote:
> I am using mod_wsgi on webfaction..

Then see examples in:

  http://code.google.com/p/modwsgi/wiki/IntegrationWithWebPy

The entry point must be called 'application' not 'app' and you should
always be setting it up, and not only when __name__ is __main__.

Graham

> On Thu, May 21, 2009 at 1:23 AM, Graham Dumpleton <
>
>
>
> [email protected]> wrote:
>
> > 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
>
> --
> David Montgomery
> Chief Technical Officer
> Ad Alohahttp://www.AdAloha.com
> Honolulu, Hawaii 96815
> 808-351-5046
> Calandarhttp://users.adaloha.com/davidmontgomery_calandar
--~--~---------~--~----~------------~-------~--~----~
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