Web.py WSGI Setup Information
Web.py is a web framework for python that is as simple as it is powerful.
Setup
Web.py is supported with our Python package
using WSGI.
Example application
Here is an example "script" that you can use to test your setup,
import web
urls = (
'/.*', 'hello',
)
class hello:
def GET(self):
print "Hello, world."
application = web.wsgifunc(web.webpyfunc(urls, globals()))
Accessing your pages from the web
To access your page from a web browser or from a link in another page, you need to use a URL in the formats below, notice
the ending slash.
- http://www.jbloggs.devisland.net/wsgi/app.py
Or just like this for a relative link:
|