Skip to content
Newer
Older
100644 78 lines (57 sloc) 2.52 KB
4d5dc74 @anandology web.py cookbook
anandology authored Feb 18, 2008
1 ---
2 layout: default
3 title: Web.py Cookbook
4 ---
5
6 # Web.py Cookbook
7
422b0f2 @irrelative edit
irrelative authored Feb 26, 2008
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.
4d5dc74 @anandology web.py cookbook
anandology authored Feb 18, 2008
9
8ff29a8 @irrelative edit
irrelative authored Feb 27, 2008
10 #Formatting
11
a75708f @irrelative editing formatting
irrelative authored Feb 27, 2008
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...
ccd87cb @irrelative edit
irrelative authored Feb 27, 2008
17
a75708f @irrelative editing formatting
irrelative authored Feb 27, 2008
18 1. Note that the urls don't need "web" in them -- just "/cookbook/select" , not "/cookbook/web.select".
ccd87cb @irrelative edit
irrelative authored Feb 27, 2008
19
a75708f @irrelative editing formatting
irrelative authored Feb 27, 2008
20 1. Finally, this documentation is for version 0.3, so please only add code that you know works with the new version.
ccd87cb @irrelative edit
irrelative authored Feb 27, 2008
21
8ff29a8 @irrelative edit
irrelative authored Feb 27, 2008
22 -------------------------------------------------
23
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
24 ##Basics:
4d5dc74 @anandology web.py cookbook
anandology authored Feb 18, 2008
25 * [Hello World](/cookbook/helloworld)
426690e @tzuryby edit
tzuryby authored Feb 25, 2008
26 * [Serving Static Files](/cookbook/staticfiles)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
27 * [Seeother and Redirect](/cookbook/redirect+seeother)
935a794 @aaronsw edit
aaronsw authored Jun 18, 2008
28 * [using subapplications](/cookbook/subapp)
8ec91ab @eraad edit
eraad authored Apr 30, 2008
29 * [Serving XML](/cookbok/xmlfiles)
e704350 @irrelative edit
irrelative authored Feb 27, 2008
30
31 ##Advanced
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
32 * [web.ctx](/cookbook/ctx)
e704350 @irrelative edit
irrelative authored Feb 27, 2008
33 * loadhooks/unloadhooks (requested)
2e6dd95 @harryf like to cookbook/background
harryf authored Jun 14, 2008
34 * [How to use web.background](/cookbook/background)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
35
6f98543 @irrelative edit
irrelative authored Mar 1, 2008
36 ##Sessions and user state:
0e61a8a @anandology edit
anandology authored Feb 18, 2008
37 * [Working with Session](/cookbook/sessions)
6f98543 @irrelative edit
irrelative authored Mar 1, 2008
38 * [Working with Cookies](/cookbook/cookies)
e704350 @irrelative edit
irrelative authored Feb 27, 2008
39 * User authentication (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
40
41 ##Utils:
4d5dc74 @anandology web.py cookbook
anandology authored Feb 18, 2008
42 * [Sending Mail](/cookbook/sendmail)
7084952 @anandology edit
anandology authored Jun 11, 2008
43 * [Sending Mail Using Gmail](/cookbook/sendmail_using_gmail)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
44
45 ##Templates:
4d5dc74 @anandology web.py cookbook
anandology authored Feb 18, 2008
46 * [Using Site Layout Templates](/cookbook/layout_template)
c64aec8 @angelo-xx edit
angelo-xx authored May 2, 2008
47 * [Alternating Style](/cookbook/alternating_style)
29996ac Add article entry: * [[cookbook/template_mako|Use Mako template engin…
Bibby authored Jun 14, 2008
48 * [Use Mako template engine in webpy](/cookbook/template_mako)
99f58e7 edit
Bibby authored Jun 14, 2008
49 * [Use Cheetah template engine in webpy](/cookbook/template_cheetah)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
50
51 ##User Input:
b1a14df @irrelative Adding fileupload recipe
irrelative authored Feb 20, 2008
52 * [File Upload](/cookbook/fileupload)
768ca94 @irrelative edit
irrelative authored Feb 26, 2008
53 * [Accessing user input through web.input](/cookbook/input)
723ca1c @irrelative edit
irrelative authored Feb 27, 2008
54 * Using basic forms (requested)
768ca94 @irrelative edit
irrelative authored Feb 26, 2008
55
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
56 ##Database:
b2ca622 @irrelative edit
irrelative authored May 17, 2008
57 * [Mutliple databases](/cookbook/multidbs)
8f48766 @irrelative edit
irrelative authored Feb 27, 2008
58 * [Select: Retrieving entries from a database](/cookbook/select)
367fc8f @irrelative edit
irrelative authored May 17, 2008
59 * [Update: Updating entries in a database](/cookbook/update)
e704350 @irrelative edit
irrelative authored Feb 27, 2008
60 * Delete (requested)
f16cf3f @btipling edit
btipling authored Apr 20, 2008
61 * [Insert: Adding entries to a database](/Insert)
a7bf0ea @irrelative edit
irrelative authored May 17, 2008
62 * [Query: Advanced database queries](/cookbook/query)
87f7226 @anandology How to use database transactions
anandology authored Apr 30, 2008
63 * [How to use database transactions](/cookbook/transactions)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
64
422b0f2 @irrelative edit
irrelative authored Feb 26, 2008
65 ##Deployment:
a1311ad @tzuryby edit
tzuryby authored Mar 10, 2008
66 * [Fastcgi deployment through lighttpd](/cookbook/fastcgi-lighttpd)
fedd55d @btipling typo
btipling authored Aug 8, 2008
67 * [Fastcgi deployment through Apache](/cookbook/fastcgi-apache)
02f980f @ivoras link to cgi on apache
ivoras authored Mar 13, 2008
68 * [CGI deployment through Apache](/cookbook/cgi-apache)
e704350 @irrelative edit
irrelative authored Feb 27, 2008
69 * mod_python deployment through Apache (requested)
30b3a34 edit
Bibby authored Jun 21, 2008
70 * [mod_wsgi deployment through Apache](/cookbook/mod_wsgi-apache )
d07c511 edit
enry authored Aug 8, 2008
71 * [mod_wsgi deployment through Nginx](/cookbook/mod_wsgi-nginx )
e704350 @irrelative edit
irrelative authored Feb 27, 2008
72 * nginx deployment (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
73
7cae081 edit
r authored Mar 13, 2008
74 ##Subdomains:
d2c0075 @aaronsw edit
aaronsw authored Apr 11, 2008
75 * Subdomains and how to access the username (requested)
7cae081 edit
r authored Mar 13, 2008
76
768ca94 @irrelative edit
irrelative authored Feb 26, 2008
77
Something went wrong with that request. Please try again.