Skip to content

Instantly share code, notes, and snippets.

@colwilson
Created November 5, 2012 08:27
Show Gist options
  • Save colwilson/4016007 to your computer and use it in GitHub Desktop.
Save colwilson/4016007 to your computer and use it in GitHub Desktop.
#!/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