"Flask Web Development: Python-based Web application development practical" PDF full free download

Source: Internet
Author: User

"Flask Web Development: Web application development based on Python". pdf pdf Full version free download: https://u253469.ctfile.com/fs/253469-292665036

More ebook Downloads: Http://hadoopall.com/book

Content Introduction

This book is not only suitable for novice web developers to learn to read, but also a great reference book for Python programmers to learn advanced Web development techniques.

? Learn the basic structure of flask application and write example application;

? Use the necessary components, including templates, databases, Web Forms, and e-mail support;

? Use packages and modules to build scalable, large-scale applications;

? Implement user authentication, roles and personal data;

? Reuse templates, paginated display lists, and rich text in blog sites;

? Implement available features on smartphones, tablets, and other third-party clients using flask-based restful APIs;

? Learn to run unit tests and improve performance;

? Deploy the Web app to the production server.

About the author

Miguel Grinberg

Senior Software engineer with 25 of development experience, currently developing video software for broadcasting companies. He often writes various blogs on his personal blog (blog.miguelgrinberg.com), covering web development, robotics, photography, and occasional critics. He and his wife, four children, two dogs and a cat live together in Oregon State Portland.

Directory

Preface XI
The first part flask introduction
1th Installation 3
1.1 Using Virtual Environments 4
1.2 Installing Python packages with PIP 6
Chapter 2nd Basic Structure of the procedure 7
2.1 Initialization 7
2.2 Routing and view functions 7
2.3 Starting Server 9
2.4 A complete program 9
2.5 Request-Response Loop 11
2.5.1 Program and request context 11
2.5.2 Request Dispatch 13
2.5.3 Request Hook 13
2.5.4 Response 14
2.6 Flask Extension 15
The 3rd Chapter template 19
3.1 Jinja2 template engine 19
3.1.1 Rendering Templates 20
3.1.2 Variable 21
3.1.3 Control Structure 22
3.2 Using Flask-bootstrap to integrate Twitter Bootstrap 23
3.3 Custom Error Page 26
3.4 Links 29
3.5 Static Files 29
3.6 using flask-moment localization date and time 30
4th Web Form 33
4.1 Cross-site request forgery Protection 33
4.2 Form Class 34
4.3 rendering the form into HTML 35
4.4 Working with Forms in view functions 37
4.5 Redirection and user session 39
4.6 Flash Message 41
5th. Database 43
5.1 SQL Database 43
5.2 NoSQL Database 44
5.3 Using SQL or NoSQL 45
5.4 Python Database Framework 45
5.5 Managing databases with Flask-sqlalchemy 46
5.6 Defining a Model 47
5.7 Relationship 49
5.8 Database Operations 50
5.8.1 Creating a Table 50
5.8.2 Insert Row 51
5.8.3 Modifying line 52
5.8.4 Deleting Rows 52
5.8.5 Query Row 52
5.9 manipulating databases in view functions 54
5.1 Set into Python shell 56
5.11 Using Flask-migrate for database Migration 56
5.11.1 Creating a migration warehouse 57
5.11.2 Creating a Migration script 57
5.11.3 Update Database 58
6th Chapter e-Mail 59
Using Flask-mail to provide email support 59
Send an email in the Python shell 60
Integrating the Send email feature in your program 61
Send an e-mail asynchronously 62
7th structure of large-scale programs 65
7.1 Project Structure 65
7.2 Configuration Options 66
7.3 Package 67
7.3.1 using program factory functions 68
7.3.2 implementation of program functions in the Blueprint 69
7.4 Startup Scripts 71
7.5 Requirements Document 71
7.6 Unit Test 72
7.7 Creating a database 74
Part Two: Social blogging programs
8th. User Authentication 77
8.1 Flask Certification Extension 77
8.2 Password Security 77
8.3 Creating the Certification Blueprint 80
8.4 Authenticating users with Flask-login 81
8.4.1 preparing the user model for login 81
8.4.2 Securing Routes 83
8.4.3 Adding a login form 83
8.4.4 Log In User 84
8.4.5 logged out users 86
8.4.6 Test Login 86
8.5 Registering a new user 87
8.5.1 Adding a user registration Form 87
8.5.2 Register a new user 89
8.6 Confirm Account 90
8.6.1 using itsdangerous to generate confirmation tokens 90
8.6.2 sending a confirmation email 92
8.7 Managing Accounts 95
9th User Role 97
9.1 Representation of roles in the database 97
9.2 Assigning a role 99
9.3 Role Verification 100
...

"Flask Web Development: Python-based Web application development practical" PDF full free download

Related Article

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.