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