Example code for many common questions can be found in the cookbook section.
Why are the urls just one long list?
If they were a dictionary, they wouldn't be ordered. If it was a list of tuples, then it'd be a lot more typing.
Create a directory (also known as a folder) called
staticin the location of the script that runs the web.py server. Then place the static files you wish to server in the
staticfolder. For example, the URL
http://localhost/static/logo.pngwill send the image
./static/logo.pngto the client.
Where can I go for additional help?
Google Groups has a web.py group that is quite helpful.
How do I debug print to the console?
web.debug("I will get printed to the console and not the body of the webpage")
I stumbled over a bug in web.py. Where can I file it?
Go to the webpy launchpad site, login (or register if you have to) and click on "report a bug".
What's this magic
ctxI see in examples?