On Sun, Jan 3, 2010 at 8:07 PM, muare <[email protected]> wrote: > Hi, > > I am a newbie of web.py and python ;-(. > > I have read the demo of web.py and find almost every example has codes > like below: > > if __name__ == '__main__': web.run(tidy) > > but I can't find the where "web.run" is defined in the code. I have tried > google,stackoverflow to find the answer. but nothing is found.
you must be looking at an example using web.py 0.2. In version 0.3 web.run has been removed. The right way to it is: app = web.application(urls, globals()) app.run() Look at the example on http://webpy.org/ to get a better idea. -- 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.
