Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (45 sloc) 1.72 KB
layout title
default
Web.py Cookbook

Web.py Cookbook

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.

Formatting

  1. In terms of formatting, please try to use a cookbook-like format...that is:

    Problem: You want to access data from database.

    Solution: Use this code...

  2. Note that the urls don't need "web" in them -- just "/cookbook/select" , not "/cookbook/web.select".

  3. Finally, this documentation is for version 0.3, so please only add code that you know works with the new version.


Basics:

Advanced

  • web.ctx
  • loadhooks/unloadhooks (requested)
  • How to properly use web.background (requested)

Sessions:

Utils:

Templates:

User Input:

Database:

Deployment:

  • Fastcgi deployment through lighttpd (requested)
  • Fastcgi deployment through Apache (requested)
  • mod_python deployment through Apache (requested)
  • nginx deployment (requested)
Jump to Line
Something went wrong with that request. Please try again.