On Wed, Dec 31, 2008 at 1:49 AM, rooster <[email protected]> wrote:
>
> i'm running the latest .31 webpy.
>
> have a simple, basic code.py, running it with any port number, i get
> the following when i hit the url...any ideas? there is definately 101%
> nothing running on the ports i am trying.
>
> error:(48, 'Address already in use')
>
> import web
>
> urls = (
>    '/', 'index'
> )
>
>
> app = web.application(urls,globals())
> app.run()
>
> class index:
>    def GET(self):
>        print "Hello"

app.run() must be used like this.

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

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