2009/9/8 Piyawan T. <[email protected]>:
>
> #!/usr/bin/python
> import web
> urls = (
>        '/', 'Hello',
> )
> class hello:
>        def GET(self):
>                return 'Hello, world!'
> if __name__ == "__main__":
>        web.run(urls, globals())
> **********************************************
> I want to run it as CGI. Is there something wrong in it ? I got a text
> 'internal server error'.
> Please help me see it~~

It should be:

app = web.application(urls, globals())

if __name__ == "__main__":
    app.run()

Look at example on http://webpy.org/.

Anand

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