mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #1117 from lovedboy/webpy
add web.py frameworks example
This commit is contained in:
commit
12b4862c1b
16
examples/frameworks/webpyapp.py
Normal file
16
examples/frameworks/webpyapp.py
Normal file
@ -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()
|
||||||
Loading…
x
Reference in New Issue
Block a user