mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
add web.py frameworks example
This commit is contained in:
parent
811ea7880e
commit
ac4292f60e
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