try http://localhost:8080/
On Thu, Sep 30, 2010 at 2:01 AM, emma <[email protected]> wrote: > Hi, > > When I copied the following code to code.py and run it in the command > line, I got > http://0.0.0.0:8080/ > > Then I open a new firefox window, and type "http://0.0.0.0:8080/", and > I could not load the page and got an error that "The connection was > reset". > > Can anyone give me some advice about this? Thanks. > > # code.py > import web > urls = ('/', 'index') > app = web.application(urls, globals()) > > class index: > def GET(self): > return "Hello, world!" > > 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] <webpy%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- jinguoli 我的世界,我的精彩 http://jinguoli.me -- 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.
