Skip to content
Newer
Older
100644 34 lines (19 sloc) 1.41 KB
e91da32 grpgrp
anonymous authored
1 ---
2 layout: default
b362707 edit
reizn authored
3 title: FAQ
e91da32 grpgrp
anonymous authored
4 ---
5
b362707 edit
reizn authored
6 # FAQ
7
cd464f9 @qbuben encoding fix
qbuben authored
8 Other languages : [español](/faq/es) | [russian русский](/faq/ru) | [japan 日本語](/faq/ja) | [chinese 简体中文](/faq/zh-cn) | [français](/faq/fr)
f8b2d6c @ohsc edit
ohsc authored
9
3e640da @irrelative Removing out of date information, or information that is found in coo…
irrelative authored
10 Example code for many common questions can be found in the [cookbook section](/cookbook).
9397c37 edit
Mau authored
11
12 99. **Why are the urls just one long list?**
13
14 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.
15
16 99. **How do I serve static files such as JavaScripts or images like PNG and JPG with the web.py server?**
17
18 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 the `static` folder. For example, the URL `http://localhost/static/logo.png` will send the image `./static/logo.png` to the client.
19
20 99. **Where can I go for additional help?**
21
259719d Revert spam.
anonymous authored
22 Google Groups has a [web.py group](http://groups.google.com/group/webpy) that is quite helpful.
9397c37 edit
Mau authored
23
c40158d @hraban revert SPAM
hraban authored
24 99. **How do I debug print to the console?**
9397c37 edit
Mau authored
25
c40158d @hraban revert SPAM
hraban authored
26 web.debug("I will get printed to the console and not the body of the webpage")
9397c37 edit
Mau authored
27
c40158d @hraban revert SPAM
hraban authored
28 99. **I stumbled over a bug in web.py. Where can I file it?**
9397c37 edit
Mau authored
29
b659bdc @iffy edit
iffy authored
30 Go to the [webpy launchpad site](https://launchpad.net/webpy), login (or register if you have to) and click on "report a bug".
31
32 99. **What's this magic `ctx` I see in examples?**
33
2e8a2b5 @brolewis Remove Spam
brolewis authored
34 [ctx cookbook recipe](/cookbook/ctx) []()
Something went wrong with that request. Please try again.