Web. py cookbook Simplified Chinese version

Source: Internet
Author: User
Tags subdomain name

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
  1. When orchestrating content, try to use cookbook format... For example:

    ### Question: how to access data in the database?

    ### Solution: Use the following code...

  2. Note that the website does not contain "Web ". For example, "/cookbook/select", rather than "/cookbook/Web. Select ".

  3. 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.