Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 92 lines (72 sloc) 3.678 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)
518e6a2 @sonnycolombo edit
sonnycolombo authored
26 * [Serving Static Files](/cookbook/staticfiles)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
27 * [Seeother and Redirect](/cookbook/redirect+seeother)
935a794 @aaronsw edit
aaronsw authored
28 * [using subapplications](/cookbook/subapp)
8ec91ab @eraad edit
eraad authored
29 * [Serving XML](/cookbok/xmlfiles)
e704350 @irrelative edit
irrelative authored
30
31 ##Advanced
289de3b @irrelative Breaking cookbook into topics
irrelative authored
32 * [web.ctx](/cookbook/ctx)
8bdb817 @anandology application_processors
anandology authored
33 * [Application processors, loadhooks and unloadhooks](/cookbook/application_processors)
2e6dd95 @harryf like to cookbook/background
harryf authored
34 * [How to use web.background](/cookbook/background)
8dc59d2 @anandology custom not found message
anandology authored
35 * [Custom NotFound message](/cookbook/custom_notfound)
3ba2a96 @dublo7 Added link to streaming example place holder
dublo7 authored
36 * [How to Stream Large Files](/cookbook/streaming_large_files)
d2a6ef7 @harryf add pointer at Control over logging for default HTTPServer
harryf authored
37 * [Control over logging for default HTTPServer](/cookbook/logging)
a8074b8 @anandology edit
anandology authored
38
6f98543 @irrelative edit
irrelative authored
39 ##Sessions and user state:
0e61a8a @anandology edit
anandology authored
40 * [Working with Session](/cookbook/sessions)
c83d494 @anandology edit
anandology authored
41 * [Using session with reloader](/cookbook/session_with_reloader)
6f98543 @irrelative edit
irrelative authored
42 * [Working with Cookies](/cookbook/cookies)
d91319a User Auth link add
bobson authored
43 * [User authentication](/cookbook/userauth)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
44
45 ##Utils:
4d5dc74 @anandology web.py cookbook
anandology authored
46 * [Sending Mail](/cookbook/sendmail)
7084952 @anandology edit
anandology authored
47 * [Sending Mail Using Gmail](/cookbook/sendmail_using_gmail)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
48
49 ##Templates:
bc16e73 Add 'Templetor: The web.py templating system'.
Bibby authored
50 * [Templetor: The web.py templating system](http://webpy.org/docs/0.3/templetor )
4d5dc74 @anandology web.py cookbook
anandology authored
51 * [Using Site Layout Templates](/cookbook/layout_template)
c64aec8 @angelo-xx edit
angelo-xx authored
52 * [Alternating Style](/cookbook/alternating_style)
903fb0b edit
Bibby authored
53 * [i18n support in template file](/cookbook/i18n_support_in_template_file )
29996ac Add article entry: * [[cookbook/template_mako|Use Mako template engine i...
Bibby authored
54 * [Use Mako template engine in webpy](/cookbook/template_mako)
99f58e7 edit
Bibby authored
55 * [Use Cheetah template engine in webpy](/cookbook/template_cheetah)
59b9bea edit
Bibby authored
56 * [Use Jinja2 template engine in webpy](/cookbook/template_jinja)
55d6851 @anandology How to use templates on GAE
anandology authored
57 * [How to use templates on Google App Engine](/cookbook/templates_on_gae)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
58
22fdeb4 @arowla Added link to new testing recipe
arowla authored
59 ##Testing:
60 * [Testing with Paste and Nose](/cookbook/testing_with_paste_and_nose)
61
289de3b @irrelative Breaking cookbook into topics
irrelative authored
62 ##User Input:
b1a14df @irrelative Adding fileupload recipe
irrelative authored
63 * [File Upload](/cookbook/fileupload)
b367fc2 added "store upload"
Enfenion authored
64 * [Store an uploaded file](/cookbook/storeupload)
8cb8150 @anandology edit
anandology authored
65 * [How to put a limit of size of uploaded files](/cookbook/limiting_upload_size)
768ca94 @irrelative edit
irrelative authored
66 * [Accessing user input through web.input](/cookbook/input)
ef2bf4e @anandology add "how to use forms"
anandology authored
67 * [How to use forms](/cookbook/forms)
4d824db edit
foxbunny authored
68 * [Render individual form fields](/cookbook/form_fields)
768ca94 @irrelative edit
irrelative authored
69
289de3b @irrelative Breaking cookbook into topics
irrelative authored
70 ##Database:
bf72085 @lifeeth Fixed a typo in the spelling of multiple
lifeeth authored
71 * [Multiple databases](/cookbook/multidbs)
8f48766 @irrelative edit
irrelative authored
72 * [Select: Retrieving entries from a database](/cookbook/select)
367fc8f @irrelative edit
irrelative authored
73 * [Update: Updating entries in a database](/cookbook/update)
adcfdc8 @irrelative adding delete link
irrelative authored
74 * [Delete: Remove entries in a database](/cookbook/delete)
f16cf3f @btipling edit
btipling authored
75 * [Insert: Adding entries to a database](/Insert)
a7bf0ea @irrelative edit
irrelative authored
76 * [Query: Advanced database queries](/cookbook/query)
87f7226 @anandology How to use database transactions
anandology authored
77 * [How to use database transactions](/cookbook/transactions)
f1a75d5 @brentp edit
brentp authored
78 * [Using sqlalchemy](/cookbook/sqlalchemy)
eeb18a9 @tzuryby /cookbook/sqlite-udf
tzuryby authored
79 * [Integrating SQLite UDF (user-defined-functions) with webpy database layer](/cookbook/sqlite-udf)
80
289de3b @irrelative Breaking cookbook into topics
irrelative authored
81
422b0f2 @irrelative edit
irrelative authored
82 ##Deployment:
a1311ad @tzuryby edit
tzuryby authored
83 * [Fastcgi deployment through lighttpd](/cookbook/fastcgi-lighttpd)
fedd55d @btipling typo
btipling authored
84 * [Fastcgi deployment through Apache](/cookbook/fastcgi-apache)
02f980f @ivoras link to cgi on apache
ivoras authored
85 * [CGI deployment through Apache](/cookbook/cgi-apache)
e704350 @irrelative edit
irrelative authored
86 * mod_python deployment through Apache (requested)
30b3a34 edit
Bibby authored
87 * [mod_wsgi deployment through Apache](/cookbook/mod_wsgi-apache )
d07c511 edit
enry authored
88 * [mod_wsgi deployment through Nginx](/cookbook/mod_wsgi-nginx )
ffa76a7 Added Fastcgi deployment for Nginx.
Frank authored
89 * [Fastcgi deployment through Nginx](/cookbook/fastcgi-nginx)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
90
7cae081 edit
r authored
91 ##Subdomains:
ffa76a7 Added Fastcgi deployment for Nginx.
Frank authored
92 * Subdomains and how to access the username (requested)
Something went wrong with that request. Please try again.