import web

urls = {
    '/(.*)','hello'
}

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

class  hello:
    def  GET(self,name):
        if  not name: name = 'world'
        web.header('Content-Type', 'text/html; charset=UTF-8')
        return "Hello,%s!"%name

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

code is above,
i command "python code.py 192.168.188.2:5050"
start success
but i enter http://192.168.188.2:5050/ in browse,show not found
help me.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to