Source

pyptug / webpy / helloworld / hw2.py

Diff from to

webpy/helloworld/hw2.py

         return 'Hello, World!'
 
 # urls to dispatch
-URLS = ( '/.*', All,
+URLS = ( '/.*', 'All',
 )
 # setting up a web app
-app = web.application(URLS, globals())
-app.run()
+if __name__ == '__main__' :
+    app = web.application(URLS, globals())
+    app.run()