Head First Python learning Note (vii)

Source: Internet
Author: User

One, Web server processing Web requests

(1) Web requests static content, the Web server looks for static content and sends it back to the browser

(2) Web requests dynamic content, the Web server finds the program to execute, executes the found program, then captures the output of the program as a Web response, and then sends it to the waiting browser. The process of producing dynamic content has been standardized, known as the Universal Gateway Interface (Common getway interface,cgi). Programs that meet this standard are often referred to as CGI scripts.

Second, MVC

(1) Good Web applications should follow the model-view-controller (Model-view-controller) pattern, which helps to divide the code of the Web application into manageable functional modules for easy expansion.

(2) Model: code that stores (and sometimes processes) Web application data; View: formatting and displaying code for the Web app user interface; controllers: Code that "glues" web apps together and provides business logic.

Head First Python learning Note (vii)

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.