Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 70 lines (49 sloc) 1.965 kB
4d5dc74 @anandology web.py cookbook
anandology authored
1 ---
2 layout: default
3 title: Web.py Cookbook
4 ---
5
6 # Web.py Cookbook
7
422b0f2 @irrelative edit
irrelative authored
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
9
8ff29a8 @irrelative edit
irrelative authored
10 #Formatting
11
a75708f @irrelative editing formatting
irrelative authored
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
17
a75708f @irrelative editing formatting
irrelative authored
18 1. Note that the urls don't need "web" in them -- just "/cookbook/select" , not "/cookbook/web.select".
ccd87cb @irrelative edit
irrelative authored
19
a75708f @irrelative editing formatting
irrelative authored
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
21
8ff29a8 @irrelative edit
irrelative authored
22 -------------------------------------------------
23
289de3b @irrelative Breaking cookbook into topics
irrelative authored
24 ##Basics:
4d5dc74 @anandology web.py cookbook
anandology authored
25 * [Hello World](/cookbook/helloworld)
426690e @tzuryby edit
tzuryby authored
26 * [Serving Static Files](/cookbook/staticfiles)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
27 * [Seeother and Redirect](/cookbook/redirect+seeother)
e704350 @irrelative edit
irrelative authored
28
29 ##Advanced
289de3b @irrelative Breaking cookbook into topics
irrelative authored
30 * [web.ctx](/cookbook/ctx)
e704350 @irrelative edit
irrelative authored
31 * loadhooks/unloadhooks (requested)
32 * How to properly use web.background (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
33
6f98543 @irrelative edit
irrelative authored
34 ##Sessions and user state:
0e61a8a @anandology edit
anandology authored
35 * [Working with Session](/cookbook/sessions)
6f98543 @irrelative edit
irrelative authored
36 * [Working with Cookies](/cookbook/cookies)
e704350 @irrelative edit
irrelative authored
37 * User authentication (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
38
39 ##Utils:
4d5dc74 @anandology web.py cookbook
anandology authored
40 * [Sending Mail](/cookbook/sendmail)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
41
42 ##Templates:
4d5dc74 @anandology web.py cookbook
anandology authored
43 * [Using Site Layout Templates](/cookbook/layout_template)
e704350 @irrelative edit
irrelative authored
44 * Odd/even table rows (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
45
46 ##User Input:
b1a14df @irrelative Adding fileupload recipe
irrelative authored
47 * [File Upload](/cookbook/fileupload)
768ca94 @irrelative edit
irrelative authored
48 * [Accessing user input through web.input](/cookbook/input)
723ca1c @irrelative edit
irrelative authored
49 * Using basic forms (requested)
768ca94 @irrelative edit
irrelative authored
50
289de3b @irrelative Breaking cookbook into topics
irrelative authored
51 ##Database:
e704350 @irrelative edit
irrelative authored
52 * Mutliple databases (requested)
8f48766 @irrelative edit
irrelative authored
53 * [Select: Retrieving entries from a database](/cookbook/select)
e704350 @irrelative edit
irrelative authored
54 * Update (requested)
55 * Delete (requested)
56 * Insert (requested)
57 * Query (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
58
422b0f2 @irrelative edit
irrelative authored
59 ##Deployment:
a1311ad @tzuryby edit
tzuryby authored
60 * [Fastcgi deployment through lighttpd](/cookbook/fastcgi-lighttpd)
e704350 @irrelative edit
irrelative authored
61 * Fastcgi deployment through Apache (requested)
02f980f @ivoras link to cgi on apache
ivoras authored
62 * [CGI deployment through Apache](/cookbook/cgi-apache)
e704350 @irrelative edit
irrelative authored
63 * mod_python deployment through Apache (requested)
64 * nginx deployment (requested)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
65
7cae081 edit
r authored
66 ##Subdomains:
d2c0075 @aaronsw edit
aaronsw authored
67 * Subdomains and how to access the username (requested)
7cae081 edit
r authored
68
768ca94 @irrelative edit
irrelative authored
69
Something went wrong with that request. Please try again.