Needless to say, we directly introduce the contents of this open class.
Main content:
First, Web Development Foundation
Ii. "Hello World" in the Flask
Three, the Flask template
Iv. message hints and exception handling for Flask
First, Web Development Foundation
This chapter focuses on the WEB to develop the foundation, first of all, the basic front-end knowledge, as well as the next project will be used in the front-end framework, and then introduce Git and Github, to expand their learning ideas. Second, learn the MVC design pattern, finally learn the HTTP protocol, focus on the Get and POST methods.
This section covers the following four points of knowledge:
Front-end knowledge
Git and Github
MVC design Pattern
HTTP protocol
1.1, the front-end Development Foundation
If you do not know these basic knowledge of friends, we can seize the time to learn. At least to achieve expert writing, some of the basic concepts such as box model to master, especially JS is more important, in our future development will be used frequently.
1.2, common front-end library and framework
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/09/3d1dce754a32b912bf1e2655fff52979.png-wh_500x0-wm_3 -wmp_4-s_3814841453.png "title=" Untitled -1.png "alt=" 3d1dce754a32b912bf1e2655fff52979.png-wh_ "/>
Bootstrap is a more versatile framework that enables rapid development of responsive web pages
The second JQuery, this is a very common JS library, you can use it to manipulate the DOM of the HTML, I hope you understand, and learn proficiency in using.
Vue.js is a very hot JavaScript MVVM library, with easy-to-use, flexible features.
1.3. Code management Tools
650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/09/9c6d3106b46d77e7761a26fab69ba908.png-wh_500x0-wm_3 -wmp_4-s_4246335066.png "title=" 0.4159337647554824.png "width=" "height=" border= "0" hspace= "0" vspace= "0" Style= "width:100px;height:100px;" alt= "9c6d3106b46d77e7761a26fab69ba908.png-wh_"/>
Introduce a good code management tool Git,git is a distributed management and Control tool, originally designed by Linus to manage the Linux kernel, the reason for this is to see "The Birth of Git." Of course, compared with our usual version of the tool SVN, Git has a lot of advantages, first it is very fast, especially on large projects, and its branch-based development model is also very suitable for some fast iteration of the product, so git is very popular in the Internet company.
650) this.width=650; "Src=" Https://s5.51cto.com/oss/201711/09/20d1de73076cf36baf37f6432e2daa26.png-wh_500x0-wm_3 -wmp_4-s_88674391.png "title=" 0.86760211809388.png "width=" "height=" 138 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:300px;height:138px; "alt=" 20d1de73076cf36baf37f6432e2daa26.png-wh_ "/>
So what is Github? Github is actually a social web site based on Git, with a lot of good open source projects, including the Flask we want to learn.
GitHub is recommended here mainly to let everyone in the future study, you can go to Github to find some excellent learning resources.
1.4. MVC design Pattern
Let's look at the MVC design pattern below, so why do you want to talk about MVC? Mainly it is widely used, especially in the field of web development, so there are a lot of web development is based on MVC, that in Python, we learn the Flask Web framework, is based on the MVC pattern.
MVC usually consists of three parts:
View (views)
Controller (Controllers)
Model (models)
The use of MVC can greatly improve the maintainability of the code, so that the structure is more clear, in the subsequent content through the Flask to explain the MVC in detail in the application of Flask, let everyone feel the benefits of MVC design.
1.5. HTTP Protocol (Hypertext Transfer Protocol)
We come to recall the usual online process, first in the browser address bar input address, enter, make a request, and then the server responds to the request, the results are returned to the browser, the browser will parse the results rendered to the page, then we can clearly see the requested page.
That above the entire process is HTTP in play, the HTTP protocol mainly has the following two features:
Based on the request and response pattern, it is well understood by our recall just now, in fact our large number of WEB development frameworks are processing HTTP requests and then returning the result of the HTTP response, what is called "stateless"? This means that the server does not remember who sent the request.
1.6. HTTP request
The general development of the main use of GET and POST These two methods are sufficient, then in the Restful style of API Development, these four methods will be used. In the later Flask Development, the application code will be used to introduce the application scenarios of get and POST .
The first part of the theory, the following parts are mostly actual combat, I will be in the Open class for you to demonstrate the technical points of each Flask .
Ii. "Hello World" in the Flask
This section contains the following three points of knowledge:
Three, the Flask template
In this section of the content I will write a lot of code to explain Flask template, Please note: Flask Routing and template is Flask development of the basic knowledge, need to master!
This section contains the following four points of knowledge:
Simple use of templates
Control statements
Looping statements
Template inheritance
These four knowledge points, in the actual development, will be used frequently.
Iv. message hints and exception handling for Flask
This section covers the following three points of knowledge:
Message prompt
Throw exception
Exception handling
Sharing time: November 9, 17 evening Nine o'clock (Thursday)
How to share: Webcast
How to participate:
1, add small assistants, notes "Open Class", access to share groups, access to share live links and related information:
51Reboot Open Class sharing group of more than 300 people, please add small assistants: 1251743084, Notes "Open Class", will pull into the group
Technical Exchange QQ Group: 238757010
This article is from the "Python & Golang Learning" blog, so be sure to keep this source http://51reboot.blog.51cto.com/2180875/1980214
Nine o'clock in the evening | Flask Foundation and WEB Development combat