Introduction to Flask | Developing Web Applications with Flask

JumpStart to Flask: Explore Flask Essentials, Views, Database Integration, Jinja Templates, Error Handling, Testing & More

TTPS4868

Introductory and Beyond

3 Days

Course Overview

Geared for experienced Python developers, Developing Web Applications with Flask is a hands-on Flask training course that provides students with the core skills required to create professional web applications with the Flask microframework.

This is the high-level list of topics covered in the course. Please see the Agenda tab for detailed sessions, lessons and labs:

  • An Overview of Flask
  • Diving Right In
  • Simple Views
  • Organizing the Application
  • Integrating a SQLite Database
  • Jinja Templates
  • HTTP Responses
  • HTML Forms
  • Advanced Views
  • Error Handling
  • Testing and Debugging
  • Advanced Topics

 

Course Objectives

This course is approximately 40% hands-on lab to 60% lecture ratio, combining expert lecture, real-world demonstrations and group discussions with machine-based practical labs and exercises.  Our engaging instructors and mentors are highly experienced practitioners who bring years of current "on-the-job" experience into every classroom.

Working in a hands-on learning environment, guided by our expert team, attendees will learn to:

  • Create complete Flask applications
  • Work with session data
  • Design Jinja templates using inheritance
  • Integrate a SQLite database
  • Test and debug Flask applications

Need different skills or topics?  If your team requires different topics or tools, additional skills or custom approach, this course may be further adjusted to accommodate.  We offer additional python, scripting, web development, database, analytics and other related topics that may be blended with this course for a track that best suits your needs. Our team will collaborate with you to understand your needs and will target the course to focus on your specific learning objectives and goals.

Course Prerequisites

This introductory-level course is geared for experienced Python developers who want to use Python and Flask for web development projects. Attendees should have working experience with Python basics, as well as basic skills working with HTML5 and CSS3. JavaScript is not required.

Additional Follow On Courses:  Our Python tracks include a wide variety of follow-on courses and learning paths for leveraging Python for next-level web development, data science / machine learning, networking, task automation, security and other topics. Please see the attached Python Training Suite list of courses, or inquire for recommendations based on your specific role and goals.

Please see the Related Courses tab for specific Pre-Requisite courses, Related Courses or Follow-On training options. Our team will be happy to help you with recommendations for next steps in your Learning Journey.

Course Agenda

Please note that this list of topics is based on our standard course offering, evolved from typical industry uses and trends. We’ll work with you to tune this course and level of coverage to target the skills you need most.

Session: Introduction

Session: Overview of Flask

  •  Origins and purpose
  • Views, controllers, but no models
  • What Flask can and cannot do

Session: Diving Right In

  •  A simple application
  • Configuring routes
  • Defining view functions
  • Deploying the application

Session: Simple Views

  • HTTP Methods
  • Returning content
  • Templates and variables

Session: Organizing the Application

  • Configuring routes
  • Static files22
  • Configuration
  • Context locals
  • Sessions

Session: Integrating a Database

  • The g (global) object
  • Creating a table
  •  Inserting rows
  • Making queries
  • Walkthrough of minor changes necessary for integrating other databases (SQL Server, Oracle, MySQL, etc.)

Session: Jinja Templates

  • The big picture
  •  Simple syntax
  •  Block statements
  •  Loading and rendering
  • Inheritance
  • Advanced syntax
  • Filters and tests

Session: HTTP Responses

  • String responses
  •  Setting the status code
  •  Getting the response object
  • Adding response headers

Session: HTML Forms

  •  Simple forms
  •  Form submission
  • oRetrieving user data
  • Re-submitting forms

Session: Advanced Views

  • Redirects
  • Auto-escaping HTML
  •  Message flashing
  •  Built-in decorators

Session: Error Handling

  •  Handling an unrouted URL
  • Aborting a page view
  •  Customizing the error page

Session: Testing and Debugging

  • Using unittest
  • Simple tests
  • Accessing sessions
  • Mocking resources

Session: Advanced Topics

  • Custom filters and tests
  • Class-based views
  • Support for JSON
  • Blueprints

Course Materials

Student Materials: Each student will receive a Student Guide with course notes, code samples, software tutorials, diagrams and related reference materials and links (as applicable). Our courses also include step by step hands-on lab instructions and and solutions, clearly illustrated for users to complete hands-on work in class, and to revisit to review or refresh skills at any time. Students will also receive related (as applicable) project files, code files, data sets and solutions required for the hands-on work.

Classroom Setup Made Simple:  Our dedicated tech team will work with you to ensure your classroom and lab environment is setup, tested and ready to go well in advance of the course delivery date, ensuring a smooth start to class and seamless hands-on experience for your students. We offer several flexible student machine setup options including guided manual set up for simple installation directly on student machines, or cloud based / remote hosted lab solutions where students can log in to a complete separate lab environment minus any installations, or we can supply complete turn-key, pre-loaded equipment to bring ready-to-go student machines to your facility.  Please inquire for details, options and pricing

Raise the bar for advancing technology skills

Attend a Class!

Live scheduled classes are listed below or browse our full course catalog anytime

Special Offers

We regulary offer discounts for individuals, groups and corporate teams. Contact us

Custom Team Training

Check out custom training solutions planned around your unique needs and skills.

EveryCourse Extras

Exclusive materials, ongoing support and a free live course refresh with every class.

Mix, Match & Master!
2FOR1: Two Courses, One Price!

Enroll in *any* two public courses (for 2023 *OR* 2024 dates!) by December 31, for one price!  Learn something new, or share the promo!

Click for Details & Additional Offers

Learn. Explore. Advance!

Extend your training investment! Recorded sessions, free re-sits and after course support included with Every Course
Trivera MiniCamps
Gain the skills you need with less time in the classroom with our short course, live-online hands-on events
Trivera QuickSkills: Free Courses and Webinars
Training on us! Keep your skills current with free live events, courses & webinars
Trivera AfterCourse: Coaching and Support
Expert level after-training support to help organizations put new training skills into practice on the job

The voices of our customers speak volumes

Special Offers
Limited Offer for most courses.

SAVE 50%

Learn More