Skip to content

Instantly share code, notes, and snippets.

@davidmlentz
Created March 28, 2018 17:24
Show Gist options
  • Save davidmlentz/5c186016b0ebfc8df8905ed118a8ee0f to your computer and use it in GitHub Desktop.
Save davidmlentz/5c186016b0ebfc8df8905ed118a8ee0f to your computer and use it in GitHub Desktop.
# From http://webpy.org/docs/0.3/tutorial
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