Skip to content

Instantly share code, notes, and snippets.

@crosbymichael
Created July 15, 2012 00:14
Show Gist options
  • Save crosbymichael/3114004 to your computer and use it in GitHub Desktop.
Save crosbymichael/3114004 to your computer and use it in GitHub Desktop.
Web.py Boilerplate
#!/usr/bin/env/ python
import web
urls = ('/', 'Index')
application = web.application(urls, globals())
web.config.debug = True
class Index:
def GET(self, name=''):
return 'Hello World'
def POST(self):
return 'Hello World'
if __name__ == '__main__':
application.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment