Flask in Python: User Authentication in a Flask Application


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

In this 14-video course, titled "User Authentication in Flask Applications," you will begin with an introduction to SQL Alchemy, then install it and use it to connect the Flask application—a widely used web framework written in Python language—to a SQLite database. You will observe how to use SQL Alchemy to generate relational database tables for each model defined in an application; execute queries against tables by using a SQL Alchemy model; and how to structure a Flask application for maintenance. Then you will modify import statements to account for restructuring of Flask app and test that functionality has not been affected. Use Bcrypt package to generate hashes of passwords so that they can be stored securely, and create a bespoke validator for fields in your WTForms. Next, learn how to enable users to log in and log out of a Flask application. You will access and display the three most recent reviews posted on your Flask website; learn how to test feedback display functionality; and display images in your Flask website.



Expected Duration (hours)
1.6

Lesson Objectives

Flask in Python: User Authentication in a Flask Application

  • discover the key concepts covered in this course
  • install SQL Alchemy and use it to connect the Flask application to a SQLite database
  • use SQL Alchemy to generate relational database tables for each model defined in your application
  • execute queries against tables using a SQLAlchemy model
  • separate the model definitions, routes, and app initialization into separate files that are easier to maintain
  • modify the import statements to account for the restructuring of the Flask app and test that the functionality has not been affected
  • use the Bcrypt package to generate hashes of passwords so that they can be stored securely
  • create a bespoke validator for fields in your WTForms
  • install and use a Flask extension to allow users to login to your Flask app and maintain a login session
  • implement the logout feature so that users can sign out of a Flask app
  • access and display the three most recent reviews posted on your Flask web site
  • test that the feedback display functionality implemented works as expected
  • configure your Flask web site to display images loaded from the app's static resources
  • summarize the key concepts covered in this course
  • Course Number:
    it_pybwafdj_04_enus

    Expertise Level
    Intermediate