Flask for Beginners

Video description

This course will teach you how to build Flask apps using only Flask and two essential extensions. You don't have to worry about managing multiple extensions on your machine or about incompatible database systems. By learning without using extra extensions other than Flask-SQLAlchemy and Flask-Login, you'll have a better understanding of how things work; thus, when you actually use extensions, you'll get much more out of them.

Why Flask? Even though Flask is simple, you can create any web app you can imagine using it. Flask is not only easy to learn, it's also virtually guaranteed to work on your machine. If you've ever tried installing a large library only to find it doesn't work on your computer, you'll be delighted to find that Flask, with its few dependencies and small footprint, will work on your computer.

You'll start by learning the basics of Flask. You'll learn enough to understand the fundamentals of Flask, how to use templates, and how to connect and use an SQLite database with Flask-SQLAlchemy. Once you decide to change databases, you'll simply update the configuration because you used Flask-SQLAlchemy. And, since the best way to learn is by example, we'll build two demo applications that use only what you learned in the preceding sections. This course covers using Flask 1.0 along with Flask-SQLAlchemy 2.3 and Flask-Login 0.4. Python 3.6+ is required, but no advanced features are used so you may be able to use an older version of Python.

What You Will Learn

  • Explore the advanced networking concepts, build WANs, and work with IPV6
  • Learn EIGRP troubleshooting, GNS3 labs, and simulations
  • Practice DCE DTE physical router demos
  • NAT configuration and testing, IPV6
  • Discover OSPF anConfigure VPN and Dynamic Multipoint VPN (DMVPN)
  • Master GRE tunnel configuration and the WAN technologyd BGP

Audience

This course is for anyone who has mastered the Python fundamentals and is keen to learn how to build web frameworks in Flask. Since Flask is a microframework, beginners can easily learn and use the framework. All you need to know before starting the course is the Python basics. If you're already comfortable working with features such as loops and dicts in Python, you are ready for this course.

About The Author

Anthony Herbert: Anthony Herbert is the founder of Pretty Printed. He has been programming since 2004, but a number of those years were spent with a lack of understanding of concepts. To help others avoid the issues he had while learning to program, he created Pretty Printed so that programmers of all skill levels can understand programming concepts easier and faster.

Table of contents

  1. Chapter 1 : Course Intro
    1. StartIntro
    2. StartWhich Version of Python
    3. StartNote About Pipenv
    4. StartDownload the Source Code
  2. Chapter 2 : Flask Basics
    1. StartInstall Flask
    2. StartRouting
    3. StartRequest Methods
    4. StartRoute Variables
    5. StartQuery String Arguments
    6. StartForm Data
    7. PreviewJSON Data
    8. StartRedirect and url_for
    9. StartDebug
  3. Chapter 3 : Templates
    1. Startintro to Templates
    2. StartTemplate Variables
    3. StartConditionals
    4. StartLoops
    5. PreviewInclude
    6. StartInheritance
    7. StartComments
    8. StartStatic Files
  4. Chapter 4 : Flask-SQLAlchemy
    1. StartIntro and Install
    2. StartDetermine the URI
    3. StartConfigure and Create the Database
    4. StartCreate Table
    5. StartInsert Data
    6. PreviewUpdate Data
    7. StartDelete Data
    8. StartCreate One to Many Relationships
    9. StartAdd Data to One to Many Relationships
    10. StartQuery One to Many Relationships
    11. StartCreate Many to Many
    12. StartAdd Data to Many to Many
    13. StartQuery Many to Many
    14. StartGet All Data
  5. Chapter 5 : Structuring Flask Apps
    1. PreviewApp Factories
    2. StartBlueprints
    3. StartOrganizing Projects Beyond a Single File
  6. Chapter 6 : Registration App
    1. StartApp Overview
    2. StartSetup Project and Display Template
    3. StartSetting Up the Models
    4. StartSetup Database
    5. StartSeed Topic and Language Data
    6. StartSetup Password Hash
    7. StartVerify Form Data is Being Submitted
    8. StartLoad Languages and Topics
    9. StartSave Data from Form
    10. StartLoad Existing Data
    11. StartUpdate Database with New Data
    12. StartError Handling
  7. Chapter 7 : Registration API
    1. StartPOSTMan
    2. StartOrganize Files
    3. StartAdd JSON to Method
    4. StartGet Members Route
    5. StartGet One Member
    6. StartCreate Member
    7. StartEdit Member
  8. Chapter 8 : Dashboard App
    1. StartApp Overview
    2. StartOverview of Templates
    3. StartSetup Flask App and Template
    4. StartCreate Models for Dashboard
    5. StartCommand to Create Tables
    6. StartAdd Data into Database
    7. StartOverview of Queries We Need
    8. StartWriting the Queries
    9. StartWriting the Queries
    10. StartWriting the Queries
    11. StartWriting the Queries
    12. StartAdd the Card Values
    13. StartAdd the Revenue Goals
    14. StartWork with the Area Chart
    15. StartWork with the Pie Chart
    16. StartWork with Bar Chart
    17. StartFill in Order Table
    18. StartSetup Flask Login
    19. StartProtecting the Routes
    20. StartRegister a User
    21. StartLog In User
    22. StartAdd Password Hashing
    23. StartLogout User
    24. StartUpdate Links
    25. StartAdd Current User Name
    26. StartAdd Remember Me
    27. StartFormat Numbers and Dates
    28. StartFix Pie Chart Colors
    29. StartForm Validation
  9. Chapter 9 : Course Outro
    1. Outro

Product information

  • Title: Flask for Beginners
  • Author(s): Anthony Herbert
  • Release date: September 2019
  • Publisher(s): Packt Publishing
  • ISBN: 9781839211928