layout | title |
---|---|
default |
FAQ |
Other languages : español | russian русский | japan 日本語 | chinese 简体中文 | français | Česko
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.
-
How do I serve static files such as JavaScripts or images like PNG and JPG with the web.py server?
Create a directory (also known as a folder) called
static
in the location of the script that runs the web.py server. Then place the static files you wish to server in thestatic
folder. For example, the URLhttp://localhost/static/logo.png
will send the image./static/logo.png
to 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
ctx
I see in examples?