On Fri, Mar 5, 2010 at 7:38 PM, Gnarlodious <[email protected]> wrote: > > On Mar 4, 11:50 pm, Branko Vukelic <[email protected]> wrote: >> web.py is written to run under Python 2.x. > > OK thanks for that info. > Following the tutorial on page http://webpy.org/tutorial2.en > I get error: > > Traceback (most recent call last): > File "code.py", line 18, in <module> > if __name__ == "__main__": web.run(urls, globals()) > AttributeError: 'module' object has no attribute 'run'
You are looking at a page about an older version of web.py. See http://webpy.org/docs/0.3 for latest docs. You need to change web.run(urls, globals()) to app = web.application(urls, globals()) app.run() 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.
