Skip to content

Commit

Permalink
Merge pull request #1117 from lovedboy/webpy
Browse files Browse the repository at this point in the history
add web.py frameworks example
  • Loading branch information
berkerpeksag committed Sep 22, 2015
2 parents 811ea78 + ac4292f commit 12b4862
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/frameworks/webpyapp.py
@@ -0,0 +1,16 @@
# Run with
#
# $ gunicorn webpyapp:app
#

import web

urls = (
'/', 'index'
)

class index:
def GET(self):
return "Hello, world!"

app = web.application(urls, globals()).wsgifunc()

0 comments on commit 12b4862

Please sign in to comment.