Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 97 lines (83 sloc) 4.47 kb
4d5dc74 @anandology web.py cookbook
anandology authored
1 ---
2 layout: default
3 title: Web.py Cookbook
4 ---
5
6 # Web.py Cookbook
7
42dfdb2 @aaronsw cleanup cookbook
aaronsw authored
8 _Other languages:_ [简体中文](/cookbook/index.zh-cn) | [日本語](/cookbook/index.ja) | [Français](/cookbook/index.fr)
4d5dc74 @anandology web.py cookbook
anandology authored
9
42dfdb2 @aaronsw cleanup cookbook
aaronsw authored
10 ## Basics
4d5dc74 @anandology web.py cookbook
anandology authored
11 * [Hello World](/cookbook/helloworld)
759d6a6 @irrelative remove spam link, fix absolute link
irrelative authored
12 * [Serving Static Files](/cookbook/staticfiles)
8e2a27d @xrfang Added an entry: url_handling
xrfang authored
13 * [Understanding URL handling](/cookbook/url_handling)
8f1bcde @bstpierre Fix broken link to redirect+seeother.
bstpierre authored
14 * [Seeother and Redirect](/cookbook/redirect%20seeother)
935a794 @aaronsw edit
aaronsw authored
15 * [using subapplications](/cookbook/subapp)
7cee105 @irrelative fix xml link
irrelative authored
16 * [Serving XML](/cookbook/xmlfiles)
e0e5c7a @irrelative fix link typo
irrelative authored
17 * [Reading raw data from post](/cookbook/postbasic)
1ed9791 edit
Cai Xiao authored
18
42dfdb2 @aaronsw cleanup cookbook
aaronsw authored
19 ## Advanced
dadbdab New: Concatenating two rendered templates
Bibby authored
20 * [Contextual and Environment variables - web.ctx](/cookbook/ctx)
8bdb817 @anandology application_processors
anandology authored
21 * [Application processors, loadhooks and unloadhooks](/cookbook/application_processors)
2e6dd95 @harryf like to cookbook/background
harryf authored
22 * [How to use web.background](/cookbook/background)
8dc59d2 @anandology custom not found message
anandology authored
23 * [Custom NotFound message](/cookbook/custom_notfound)
3ba2a96 @dublo7 Added link to streaming example place holder
dublo7 authored
24 * [How to Stream Large Files](/cookbook/streaming_large_files)
d2a6ef7 @harryf add pointer at Control over logging for default HTTPServer
harryf authored
25 * [Control over logging for default HTTPServer](/cookbook/logging)
976d4e2 @danigm edit
danigm authored
26 * [SSL support in built-in cherrypy server](/cookbook/ssl)
b34ecd2 Add new item: Run-time language switch.
Bibby authored
27 * [Run-time language switch](/cookbook/runtime-language-switch)
a8074b8 @anandology edit
anandology authored
28
42dfdb2 @aaronsw cleanup cookbook
aaronsw authored
29 ## Sessions and user state
0e61a8a @anandology edit
anandology authored
30 * [Working with Session](/cookbook/sessions)
c83d494 @anandology edit
anandology authored
31 * [Using session with reloader](/cookbook/session_with_reloader)
4b1ede2 @xrfang Added an entry: session_in_template
xrfang authored
32 * [Using session in template](/cookbook/session_in_template)
6f98543 @irrelative edit
irrelative authored
33 * [Working with Cookies](/cookbook/cookies)
2b67fa8 edit
Ephedrax authored
34 * [User authentication](/cookbook/userauth)
83e9bb2 @sunmountain edit
sunmountain authored
35 * [User authentication with http basic auth (RFC2617)](/cookbook/userauthbasic)
2b67fa8 edit
Ephedrax authored
36 * [User authentication with Postgresql database](/cookbook/userauthpgsql)
4705783 @cowmix edit
cowmix authored
37 * [Sessions with sub-apps](/cookbook/sessions_with_subapp)
d3c0bad @Zbuben edit
Zbuben authored
38 * [Unpack session stored in postgresql](/cookbook/unpack_postgres_session)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
39
42dfdb2 @aaronsw cleanup cookbook
aaronsw authored
40 ## Utils
4d5dc74 @anandology web.py cookbook
anandology authored
41 * [Sending Mail](/cookbook/sendmail)
7084952 @anandology edit
anandology authored
42 * [Sending Mail Using Gmail](/cookbook/sendmail_using_gmail)
49d93a9 edit
Gustavo Andrés Angulo authored
43 * [Webservice using soaplib + WSDL](/cookbook/webservice)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
44
42dfdb2 @aaronsw cleanup cookbook
aaronsw authored
45 ## Templates
759d6a6 @irrelative remove spam link, fix absolute link
irrelative authored
46 * [Templetor: The web.py templating system](/docs/0.3/templetor )
4d5dc74 @anandology web.py cookbook
anandology authored
47 * [Using Site Layout Templates](/cookbook/layout_template)
c64aec8 @angelo-xx edit
angelo-xx authored
48 * [Alternating Style](/cookbook/alternating_style)
8167f90 @xrfang Added: template_import
xrfang authored
49 * [Import functions into templates](/cookbook/template_import)
903fb0b edit
Bibby authored
50 * [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
51 * [Use Mako template engine in webpy](/cookbook/template_mako)
99f58e7 edit
Bibby authored
52 * [Use Cheetah template engine in webpy](/cookbook/template_cheetah)
59b9bea edit
Bibby authored
53 * [Use Jinja2 template engine in webpy](/cookbook/template_jinja)
55d6851 @anandology How to use templates on GAE
anandology authored
54 * [How to use templates on Google App Engine](/cookbook/templates_on_gae)
dadbdab New: Concatenating two rendered templates
Bibby authored
55 * [Concatenate two rendered templates](/cookbook/concatenate_two_rendered_templates)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
56
42dfdb2 @aaronsw cleanup cookbook
aaronsw authored
57 ## Testing
22fdeb4 @arowla Added link to new testing recipe
arowla authored
58 * [Testing with Paste and Nose](/cookbook/testing_with_paste_and_nose)
b3c85fb added testing -> doctest
anonymous authored
59 * [RESTful doctesting using an application's request method](/cookbook/restful_doctesting_using_request)
22fdeb4 @arowla Added link to new testing recipe
arowla authored
60
42dfdb2 @aaronsw cleanup cookbook
aaronsw authored
61 ## User input
b1a14df @irrelative Adding fileupload recipe
irrelative authored
62 * [File Upload](/cookbook/fileupload)
b367fc2 added "store upload"
Enfenion authored
63 * [Store an uploaded file](/cookbook/storeupload)
8cb8150 @anandology edit
anandology authored
64 * [How to put a limit of size of uploaded files](/cookbook/limiting_upload_size)
768ca94 @irrelative edit
irrelative authored
65 * [Accessing user input through web.input](/cookbook/input)
fe24814 remove spam links
wuub authored
66 * [How to use forms](/cookbook/forms)
4d824db edit
foxbunny authored
67 * [Render individual form fields](/cookbook/form_fields)
33f34ae Added a cookbook example of simple CSRF protection
Nimrod S. Kerrett authored
68 * [How to protect forms from CSRF attacks](/cookbook/csrf)
768ca94 @irrelative edit
irrelative authored
69
42dfdb2 @aaronsw cleanup cookbook
aaronsw authored
70 ## Databases
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)
66c4a4a Move /insert link to /cookbook/insert link to respect tree hierarchy
nux authored
75 * [Insert: Adding entries to a database](/cookbook/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)
fe24814 remove spam links
wuub 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)
5d48bea Added the 'where_dict' page to TOC
foxbunny authored
80 * [Using a dictionary as where clause](/cookbook/where_dict)
eeb18a9 @tzuryby /cookbook/sqlite-udf
tzuryby authored
81
289de3b @irrelative Breaking cookbook into topics
irrelative authored
82
42dfdb2 @aaronsw cleanup cookbook
aaronsw authored
83 ## Deployment
a1311ad @tzuryby edit
tzuryby authored
84 * [Fastcgi deployment through lighttpd](/cookbook/fastcgi-lighttpd)
fedd55d @btipling typo
btipling authored
85 * [Fastcgi deployment through Apache](/cookbook/fastcgi-apache)
02f980f @ivoras link to cgi on apache
ivoras authored
86 * [CGI deployment through Apache](/cookbook/cgi-apache)
e704350 @irrelative edit
irrelative authored
87 * mod_python deployment through Apache (requested)
f252d0f @marios-zindilis Added new deployment case.
marios-zindilis authored
88 * [mod_wsgi deployment through Apache on Red Hat](/cookbook/mod_wsgi-apache)
89 * [mod_wsgi deployment through Apache on Ubuntu](/cookbook/mod_wsgi-apache-ubuntu)
d07c511 edit
enry authored
90 * [mod_wsgi deployment through Nginx](/cookbook/mod_wsgi-nginx )
ffa76a7 Added Fastcgi deployment for Nginx.
Frank authored
91 * [Fastcgi deployment through Nginx](/cookbook/fastcgi-nginx)
4c9310e @ayaz Added guide to deploy web.py on IIS7 and IIS6 using PyISAPIe.
ayaz authored
92 * [PyISAPIe deployment through IIS7/IIS6](/cookbook/iis7_iis6_windows_pyisapie)
1d8139b @Habel added docs for deploying as a google app engine application
Habel authored
93 * [Deploying as a google app engine application](/cookbook/google_app_engine)
289de3b @irrelative Breaking cookbook into topics
irrelative authored
94
42dfdb2 @aaronsw cleanup cookbook
aaronsw authored
95 ## Subdomains
8f1bcde @bstpierre Fix broken link to redirect+seeother.
bstpierre authored
96 * Subdomains and how to access the username (requested)
Something went wrong with that request. Please try again.