Python Web App Development with Flask Competency (Intermediate Level)

  • 15m
  • 15 questions
The Python Web App Development with Flask Competency (Intermediate Level) benchmark measures your ability to build an interactive website by accepting input using WTForms and conveying messages to the end users. You will be evaluated on your skills in implementing database integration and user authentication in a Flask application. A learner who scores high on this benchmark demonstrates that they have the skills to incorporate user interactions and implement user authentication in a Flask application.

Topics covered

  • configure a route in your Flask app so that POST requests can be submitted to it
  • configure your Flask web site to display images loaded from the app's static resources
  • convey the invocation of an operation to end users using message flashing
  • define a login page using field definitions and built-in validators available in WTForms
  • ensure that all the built-in validators applied on the WTForm elements work as they are expected to
  • execute queries against tables using a SQLAlchemy model
  • include the two pages defined using WTForms in the Flask application
  • install and use a Flask extension to allow users to login to your Flask app and maintain a login session
  • invoke the validators defined for WTForm elements to ensure that the user input is in the correct form
  • modify the import statements to account for the restructuring of the Flask app and test that the functionality has not been affected
  • serve a custom error page whenever a 404 error is invoked on your web site
  • test that the feedback display functionality implemented works as expected
  • use SQL Alchemy to generate relational database tables for each model defined in your application
  • use the Bcrypt package to generate hashes of passwords so that they can be stored securely
  • use the Flask debugger to record information in your application's log