Web.py CGI 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 CGI package and Python package.
Example application
Here is an example "script" that you can use to test your setup,
#!/usr/bin/python
import web
urls = ('/', 'index')
class index:
def GET(self):
print "Hello, world!"
web.webapi.internalerror = web.debugerror
if __name__ == "__main__": web.run(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/app.py/
Or just like this for a relative link:
|