Flask Framework for Python Developers, Part 2 of 3: Database and Migration
Interactive

Flask Framework for Python Developers, Part 2 of 3: Database and Migration

LearnNow Online
Updated Jul 20, 2020

Course description

Flask is the most popular python web framework and you'll learn how to make a Flask application in this course. The topics covered are: setting up the database, making a database driven application, an introduction to migrations and how to test infrastructure.

Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.


Prerequisites

• A computer with internet access (optional: administrative access to install packages) • A basic understanding of the Python language • A basic understanding of how to use the internet and text editors


Meet the expert

Jorge Escobar

Jorge Escobar is an engineer at FINDMINE.  In addition to being a consultant and working with companies like MongoDB, Venmo and Knewton he also has a passion for teaching and is an instructor for Stone River eLearning

Video Runtime

58 Minutes

Time to complete

78 Minutes

Course Outline

Database

Setup Database (15:16)

  • Introduction (00:13)
  • Setting Up Our Database (05:07)
  • Installing MySQL (00:11)
  • Installing MySQL On Mac (03:09)
  • Installing MySQL On Windows (02:45)
  • Setting Up MySQL On PythonAnywhere (01:45)
  • MVC And The Object Relational Mapper (01:56)
  • Summary (00:08)

Database Driven App (16:22)

  • Introduction (00:08)
  • First Database Driven Application (00:36)
  • Initial Application Setup (01:25)
  • Initial Application Setup on PythonAnywhere (02:17)
  • Application Libraries (01:02)
  • Environment Settings (01:47)
  • Application Factory (02:41)
  • Building Modules with Blueprints (01:24)
  • Our First Blueprint (02:22)
  • Counter Model (02:27)
  • Summary (00:08)

Introduction to Migrations (14:01)

  • Introduction (00:08)
  • An Introduction to Migrations (05:29)
  • Database Operations from the Shell (05:59)
  • The Pageviews Counter Application (02:16)
  • Summary (00:08)

Test Infrastructure (12:20)

  • Introduction (00:08)
  • Setting Up Our Test Infrastructure (09:46)
  • First Test (02:17)
  • Summary (00:08)