Skip to content
This repository
Newer
Older
100644 77 lines (56 sloc) 2.499 kb
4d5dc74c »
2008-02-18 web.py cookbook
1 ---
2 layout: default
3 title: Web.py Cookbook
4 ---
5
6 # Web.py Cookbook
7
422b0f28 »
2008-02-26 edit
8 Cookbook style documentation for web.py 0.3. Note that some of these features aren't available in previous versions. Currently version 0.3 is the development branch.
4d5dc74c »
2008-02-18 web.py cookbook
9
8ff29a83 »
2008-02-27 edit
10 #Formatting
11
a75708f2 »
2008-02-27 editing formatting
12 1. In terms of formatting, please try to use a cookbook-like format...that is:
13
14 ###Problem: You want to access data from database.
15
16 ###Solution: Use this code...
ccd87cb6 »
2008-02-27 edit
17
a75708f2 »
2008-02-27 editing formatting
18 1. Note that the urls don't need "web" in them -- just "/cookbook/select" , not "/cookbook/web.select".
ccd87cb6 »
2008-02-27 edit
19
a75708f2 »
2008-02-27 editing formatting
20 1. Finally, this documentation is for version 0.3, so please only add code that you know works with the new version.
ccd87cb6 »
2008-02-27 edit
21
8ff29a83 »
2008-02-27 edit
22 -------------------------------------------------
23
289de3b8 »
2008-02-26 Breaking cookbook into topics
24 ##Basics:
4d5dc74c »
2008-02-18 web.py cookbook
25 * [Hello World](/cookbook/helloworld)
426690e4 »
2008-02-25 edit
26 * [Serving Static Files](/cookbook/staticfiles)
289de3b8 »
2008-02-26 Breaking cookbook into topics
27 * [Seeother and Redirect](/cookbook/redirect+seeother)
935a7948 »
2008-06-18 edit
28 * [using subapplications](/cookbook/subapp)
8ec91abe »
2008-04-30 edit
29 * [Serving XML](/cookbok/xmlfiles)
e704350d »
2008-02-27 edit
30
31 ##Advanced
289de3b8 »
2008-02-26 Breaking cookbook into topics
32 * [web.ctx](/cookbook/ctx)
e704350d »
2008-02-27 edit
33 * loadhooks/unloadhooks (requested)
2e6dd956 »
2008-06-14 like to cookbook/background
34 * [How to use web.background](/cookbook/background)
289de3b8 »
2008-02-26 Breaking cookbook into topics
35
6f985438 »
2008-03-01 edit
36 ##Sessions and user state:
0e61a8a9 »
2008-02-18 edit
37 * [Working with Session](/cookbook/sessions)
6f985438 »
2008-03-01 edit
38 * [Working with Cookies](/cookbook/cookies)
e704350d »
2008-02-27 edit
39 * User authentication (requested)
289de3b8 »
2008-02-26 Breaking cookbook into topics
40
41 ##Utils:
4d5dc74c »
2008-02-18 web.py cookbook
42 * [Sending Mail](/cookbook/sendmail)
7084952d »
2008-06-11 edit
43 * [Sending Mail Using Gmail](/cookbook/sendmail_using_gmail)
289de3b8 »
2008-02-26 Breaking cookbook into topics
44
45 ##Templates:
4d5dc74c »
2008-02-18 web.py cookbook
46 * [Using Site Layout Templates](/cookbook/layout_template)
c64aec8d »
2008-05-02 edit
47 * [Alternating Style](/cookbook/alternating_style)
29996ac0 »
2008-06-14 Add article entry: * [[cookbook/template_mako|Use Mako template engin…
48 * [Use Mako template engine in webpy](/cookbook/template_mako)
99f58e7a »
2008-06-14 edit
49 * [Use Cheetah template engine in webpy](/cookbook/template_cheetah)
289de3b8 »
2008-02-26 Breaking cookbook into topics
50
51 ##User Input:
b1a14df9 »
2008-02-20 Adding fileupload recipe
52 * [File Upload](/cookbook/fileupload)
768ca94f »
2008-02-26 edit
53 * [Accessing user input through web.input](/cookbook/input)
723ca1c6 »
2008-02-27 edit
54 * Using basic forms (requested)
768ca94f »
2008-02-26 edit
55
289de3b8 »
2008-02-26 Breaking cookbook into topics
56 ##Database:
b2ca622e »
2008-05-17 edit
57 * [Mutliple databases](/cookbook/multidbs)
8f487660 »
2008-02-27 edit
58 * [Select: Retrieving entries from a database](/cookbook/select)
367fc8f4 »
2008-05-17 edit
59 * [Update: Updating entries in a database](/cookbook/update)
e704350d »
2008-02-27 edit
60 * Delete (requested)
f16cf3f1 »
2008-04-20 edit
61 * [Insert: Adding entries to a database](/Insert)
a7bf0eab »
2008-05-17 edit
62 * [Query: Advanced database queries](/cookbook/query)
87f7226e »
2008-04-30 How to use database transactions
63 * [How to use database transactions](/cookbook/transactions)
289de3b8 »
2008-02-26 Breaking cookbook into topics
64
422b0f28 »
2008-02-26 edit
65 ##Deployment:
a1311add »
2008-03-10 edit
66 * [Fastcgi deployment through lighttpd](/cookbook/fastcgi-lighttpd)
e704350d »
2008-02-27 edit
67 * Fastcgi deployment through Apache (requested)
02f980f4 »
2008-03-13 link to cgi on apache
68 * [CGI deployment through Apache](/cookbook/cgi-apache)
e704350d »
2008-02-27 edit
69 * mod_python deployment through Apache (requested)
30b3a344 »
2008-06-21 edit
70 * [mod_wsgi deployment through Apache](/cookbook/mod_wsgi-apache )
e704350d »
2008-02-27 edit
71 * nginx deployment (requested)
289de3b8 »
2008-02-26 Breaking cookbook into topics
72
7cae081a »
2008-03-13 edit
73 ##Subdomains:
d2c0075e »
2008-04-11 edit
74 * Subdomains and how to access the username (requested)
7cae081a »
2008-03-13 edit
75
768ca94f »
2008-02-26 edit
76
Something went wrong with that request. Please try again.