Just got the lastest code from the repository using git and was
working my way through the tutorial. When running my first script I
get
AttributeError: 'module' object has no attribute 'run'
My script should be exactly like the tutorial:
import web
urls = (
'/', 'index',
'', 'index'
)
class index:
def GET(self):
print "Hello, How are u?"
def POST(self):
pass
web.webapi.internalerror = web.debugerror
if __name__ == "__main__":
web.run(urls,globals())
Thoughts??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---