Created
October 13, 2013 18:12
-
-
Save mlalevic/6965441 to your computer and use it in GitHub Desktop.
Simple hello world example for web.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import web | |
urls = ( | |
'/', 'index' | |
) | |
class index: | |
def GET(self): | |
return "Hello, world!" | |
if __name__ == "__main__": | |
app = web.application(urls, globals()) | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment