Here is my bare bones app for running w/o wsgi....I use it to run a static
site on webfaction
#!/usr/local/bin/python2.5
import web
render = web.template.render('templates/')
#For debugging use only
web.internalerror = web.debugerror
urls=(
'/','index',
'/main','main'
)
app = web.application(urls, globals())
class main:
def GET(self):
web.header("Content-Type","text/html; charset=utf-8")
return render.main()
class index:
def GET(self):
web.header("Content-Type","text/html; charset=utf-8")
raise web.seeother('/main')
if __name__ == "__main__":
web.webapi.internalerror = web.debugerror
#app.notfound = notfound
app.run()
On Mon, Sep 7, 2009 at 9:02 PM, Piyawan T. <[email protected]> wrote:
>
> I have a python on a shared server. But it seems has no WSGI.
> Can I use web.py ? Is there a way to use web.py without WSGI ?
> Thank you very much in advance~~
>
> wan.
>
> >
>
--
David Montgomery
CEO
AdAloha
Honolulu, Hawaii 96815
808-351-5046
http://www.AdAloha.com
[email protected]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---