Welcome to cookbook of Web. py 0.3. Note: Some features are not available in previous versions. The current development version is 0.3.
Format
When orchestrating content, try to use cookbook format... For example:
### Question: how to access data in the database?
### Solution: Use the following code...
Note that the website does not contain "Web ". For example, "/cookbook/select", rather than "/cookbook/Web. Select ".
This Manual applies to version 0.3, so when you add code, make sure the code works in the new version.
Basic applications:
- Hello World
- Provide static File Access
- Understanding URL Control
- Redirection
- Use sub-Applications
- Provide XML access
- Read original data from post
Advanced Applications
- Obtain client information using web. CTX
- APP processor, add hook and uninstall hook
- How to use web. Background
- Custom notfound Information
- How to stream and transfer large files
- Perform operations on built-in webserver logs
- Use cherrypy to provide SSL support
- Real-time language switching
Sessions and user State session and user status:
- How to Use session
- How to Use session in debug mode
- Use session in Template
- How to operate cookies
- User Authentication
- An example of user authentication in the PostgreSQL database environment
- How to operate sessions in sub-Applications
Utils utility:
- How to send emails
- How to use Gmail to send emails
- Use soaplib to implement WebService
Templates Template
- Templetor: Web. py template System
- Use site layout templates
- Alternative style (not translated)
- Import the function to the template (not translated)
- I18n support in template files
- Use the Mako template engine in Web. py
- Use cheetah template engine in Web. py
- Use jinja2 template engine in Web. py
- How to Use templates in Google Application Engine
Testing test:
- Testing with paste and nose (untranslated)
- Restful doctesting using an application's request method (not translated)
User input user input:
- File Upload
- Save uploaded files
- Size Limit of uploaded files
- Accept user input through web. Input
- How to Use Forms
- Show individual form fields
Database
- Use multiple databases
- Select: query data
- Update: update data
- Delete: delete data
- Insert: New Data
- Query: advanced database query
- How to Use Database transactions
- Use sqlalchemy
- Integrate SQLite UDF (User-Defined Function) to the webpy database layer
- Use a dictionary to dynamically construct a where clause
Deployment deployment:
- Deploy through FastCGI and Lighttpd
- Build web. py through webpy and nginx with FastCGI
- CGI deployment through Apache)
- Mod_python deployment through Apache (requested)
- Deployed through Apache and mod_wsgi
- Mod_wsgi deployment through nginx (not translated)
- FastCGI deployment through nginx (not translated)
Subdomains subdomain name:
- Subdomains and how to access the username (requested)