Created
November 5, 2012 08:27
-
-
Save colwilson/4016007 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env python | |
import sys | |
import web | |
urls = ( | |
'/', 'index' | |
) | |
class index: | |
def GET(self): | |
return "Hello world!" | |
if __name__ == '__main__': | |
app = web.application(urls, globals()) | |
app.run() # you can change the port number | |
# on the command line - default is 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment