From ac4292f60ed7c70a5efdd89afc15fb3cd8a3f231 Mon Sep 17 00:00:00 2001 From: lovedboy Date: Tue, 22 Sep 2015 21:09:19 +0800 Subject: [PATCH] add web.py frameworks example --- examples/frameworks/webpyapp.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/frameworks/webpyapp.py diff --git a/examples/frameworks/webpyapp.py b/examples/frameworks/webpyapp.py new file mode 100644 index 00000000..aa7eef3c --- /dev/null +++ b/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()