Skip to content
This repository
Newer
Older
100644 113 lines (66 sloc) 3.528 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)
55d68512 »
2008-11-25 How to use templates on GAE
26 * [Serving Static File](/cookbook/staticfiles)<a href="http://www.from-thailand.com/" title="Grossiste, Décoration asiatique, Thailande, Import Export" alt="Grossiste, Décoration asiatique, Import Export, Thailande">s</a>
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)
8bdb8176 »
2008-11-02 application_processors
33 * [Application processors, loadhooks and unloadhooks](/cookbook/application_processors)
2e6dd956 »
2008-06-14 like to cookbook/background
34 * [How to use web.background](/cookbook/background)
8dc59d26 »
2008-11-01 custom not found message
35 * [Custom NotFound message](/cookbook/custom_notfound)
3ba2a969 »
2009-02-14 Added link to streaming example place holder
36 * [How to Stream Large Files](/cookbook/streaming_large_files)
a8074b86 »
2008-11-10 edit
37
6f985438 »
2008-03-01 edit
38 ##Sessions and user state:
0e61a8a9 »
2008-02-18 edit
39 * [Working with Session](/cookbook/sessions)
c83d494b »
2008-11-10 edit
40 * [Using session with reloader](/cookbook/session_with_reloader)
6f985438 »
2008-03-01 edit
41 * [Working with Cookies](/cookbook/cookies)
d91319a4 »
2009-01-03 User Auth link add
42 * [User authentication](/cookbook/userauth)
289de3b8 »
2008-02-26 Breaking cookbook into topics
43
44 ##Utils:
4d5dc74c »
2008-02-18 web.py cookbook
45 * [Sending Mail](/cookbook/sendmail)
7084952d »
2008-06-11 edit
46 * [Sending Mail Using Gmail](/cookbook/sendmail_using_gmail)
289de3b8 »
2008-02-26 Breaking cookbook into topics
47
48 ##Templates:
bc16e737 »
2008-11-29 Add 'Templetor: The web.py templating system'.
49 * [Templetor: The web.py templating system](http://webpy.org/docs/0.3/templetor )
4d5dc74c »
2008-02-18 web.py cookbook
50 * [Using Site Layout Templates](/cookbook/layout_template)
c64aec8d »
2008-05-02 edit
51 * [Alternating Style](/cookbook/alternating_style)
903fb0bb »
2008-11-30 edit
52 * [i18n support in template file](/cookbook/i18n_support_in_template_file )
29996ac0 »
2008-06-14 Add article entry: * [[cookbook/template_mako|Use Mako template engin…
53 * [Use Mako template engine in webpy](/cookbook/template_mako)
99f58e7a »
2008-06-14 edit
54 * [Use Cheetah template engine in webpy](/cookbook/template_cheetah)
55d68512 »
2008-11-25 How to use templates on GAE
55 * [How to use templates on Google App Engine](/cookbook/templates_on_gae)
289de3b8 »
2008-02-26 Breaking cookbook into topics
56
57 ##User Input:
b1a14df9 »
2008-02-20 Adding fileupload recipe
58 * [File Upload](/cookbook/fileupload)
8cb81504 »
2008-11-25 edit
59 * [How to put a limit of size of uploaded files](/cookbook/limiting_upload_size)
768ca94f »
2008-02-26 edit
60 * [Accessing user input through web.input](/cookbook/input)
ef2bf4e5 »
2008-11-27 add "how to use forms"
61 * [How to use forms](/cookbook/forms)
768ca94f »
2008-02-26 edit
62
289de3b8 »
2008-02-26 Breaking cookbook into topics
63 ##Database:
bf720853 »
2008-12-07 Fixed a typo in the spelling of multiple
64 * [Multiple databases](/cookbook/multidbs)
8f487660 »
2008-02-27 edit
65 * [Select: Retrieving entries from a database](/cookbook/select)
367fc8f4 »
2008-05-17 edit
66 * [Update: Updating entries in a database](/cookbook/update)
adcfdc83 »
2008-09-28 adding delete link
67 * [Delete: Remove entries in a database](/cookbook/delete)
f16cf3f1 »
2008-04-20 edit
68 * [Insert: Adding entries to a database](/Insert)
a7bf0eab »
2008-05-17 edit
69 * [Query: Advanced database queries](/cookbook/query)
87f7226e »
2008-04-30 How to use database transactions
70 * [How to use database transactions](/cookbook/transactions)
f1a75d54 »
2008-11-19 edit
71 * [Using sqlalchemy](/cookbook/sqlalchemy)
eeb18a9a »
2008-12-01 /cookbook/sqlite-udf
72 * [Integrating SQLite UDF (user-defined-functions) with webpy database layer](/cookbook/sqlite-udf)
73
289de3b8 »
2008-02-26 Breaking cookbook into topics
74
422b0f28 »
2008-02-26 edit
75 ##Deployment:
a1311add »
2008-03-10 edit
76 * [Fastcgi deployment through lighttpd](/cookbook/fastcgi-lighttpd)
fedd55de »
2008-08-08 typo
77 * [Fastcgi deployment through Apache](/cookbook/fastcgi-apache)
02f980f4 »
2008-03-13 link to cgi on apache
78 * [CGI deployment through Apache](/cookbook/cgi-apache)
e704350d »
2008-02-27 edit
79 * mod_python deployment through Apache (requested)
30b3a344 »
2008-06-21 edit
80 * [mod_wsgi deployment through Apache](/cookbook/mod_wsgi-apache )
d07c5114 »
2008-08-08 edit
81 * [mod_wsgi deployment through Nginx](/cookbook/mod_wsgi-nginx )
e704350d »
2008-02-27 edit
82 * nginx deployment (requested)
289de3b8 »
2008-02-26 Breaking cookbook into topics
83
7cae081a »
2008-03-13 edit
84 ##Subdomains:
d2c0075e »
2008-04-11 edit
85 * Subdomains and how to access the username (requested)
7cae081a »
2008-03-13 edit
86
768ca94f »
2008-02-26 edit
87
f1a75d54 »
2008-11-19 edit
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Something went wrong with that request. Please try again.