Skip to content
Newer
Older
100644 71 lines (50 sloc) 1.94 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)
9a12339 @aaronsw edit
aaronsw authored Apr 12, 2008
28 * using subapplications
e704350 @irrelative edit
irrelative authored Feb 27, 2008
29
30 ##Advanced
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
31 * [web.ctx](/cookbook/ctx)
e704350 @irrelative edit
irrelative authored Feb 27, 2008
32 * loadhooks/unloadhooks (requested)
33 * How to properly use web.background (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
34
6f98543 @irrelative edit
irrelative authored Mar 1, 2008
35 ##Sessions and user state:
0e61a8a @anandology edit
anandology authored Feb 18, 2008
36 * [Working with Session](/cookbook/sessions)
6f98543 @irrelative edit
irrelative authored Mar 1, 2008
37 * [Working with Cookies](/cookbook/cookies)
e704350 @irrelative edit
irrelative authored Feb 27, 2008
38 * User authentication (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
39
40 ##Utils:
4d5dc74 @anandology web.py cookbook
anandology authored Feb 18, 2008
41 * [Sending Mail](/cookbook/sendmail)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
42
43 ##Templates:
4d5dc74 @anandology web.py cookbook
anandology authored Feb 18, 2008
44 * [Using Site Layout Templates](/cookbook/layout_template)
e704350 @irrelative edit
irrelative authored Feb 27, 2008
45 * Odd/even table rows (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
46
47 ##User Input:
b1a14df @irrelative Adding fileupload recipe
irrelative authored Feb 20, 2008
48 * [File Upload](/cookbook/fileupload)
768ca94 @irrelative edit
irrelative authored Feb 26, 2008
49 * [Accessing user input through web.input](/cookbook/input)
723ca1c @irrelative edit
irrelative authored Feb 27, 2008
50 * Using basic forms (requested)
768ca94 @irrelative edit
irrelative authored Feb 26, 2008
51
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
52 ##Database:
e704350 @irrelative edit
irrelative authored Feb 27, 2008
53 * Mutliple databases (requested)
8f48766 @irrelative edit
irrelative authored Feb 27, 2008
54 * [Select: Retrieving entries from a database](/cookbook/select)
e704350 @irrelative edit
irrelative authored Feb 27, 2008
55 * Update (requested)
56 * Delete (requested)
57 * Insert (requested)
58 * Query (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
59
422b0f2 @irrelative edit
irrelative authored Feb 26, 2008
60 ##Deployment:
a1311ad @tzuryby edit
tzuryby authored Mar 10, 2008
61 * [Fastcgi deployment through lighttpd](/cookbook/fastcgi-lighttpd)
e704350 @irrelative edit
irrelative authored Feb 27, 2008
62 * Fastcgi deployment through Apache (requested)
02f980f @ivoras link to cgi on apache
ivoras authored Mar 13, 2008
63 * [CGI deployment through Apache](/cookbook/cgi-apache)
e704350 @irrelative edit
irrelative authored Feb 27, 2008
64 * mod_python deployment through Apache (requested)
65 * nginx deployment (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored Feb 26, 2008
66
7cae081 edit
r authored Mar 13, 2008
67 ##Subdomains:
d2c0075 @aaronsw edit
aaronsw authored Apr 11, 2008
68 * Subdomains and how to access the username (requested)
7cae081 edit
r authored Mar 13, 2008
69
768ca94 @irrelative edit
irrelative authored Feb 26, 2008
70
Something went wrong with that request. Please try again.