Skip to content

Commit

Permalink
Merge pull request benoitc#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 613fa0c + d1c238b commit 33f1fef
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/frameworks/webpyapp.py
Original file line number Diff line number Diff line change
@@ -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 33f1fef

Please sign in to comment.