Flask in Python: Building a Simple Web Site Using Flask

Flask    |    Beginner
  • 12 videos | 1h 29m
  • Includes Assessment
  • Earns a Badge
Rating 4.8 of 42 users Rating 4.8 of 42 users (42)
You will begin this 12-video course by learning how to install Flask-a widely used web framework written in Python language-in a virtual environment on your development machine, and then write the code for a simple "Hello World" website by using Flask. You will explore how route definitions can be altered and the benefits of running your Flask app in debug mode. Next, define a route that renders an HTML page when a URL is accessed; download and use some boilerplate HTML files so your website definition need not begin from scratch, and modify the boilerplate cascading style sheet (CSS) and HTML definitions to customize the look of a website. Learn how to generate URLs dynamically by using the url_for function; create a base Jinja template that can be inherited by other templates, along with placeholders that can be overridden; and explore how to inherit the elements from a base Jinja template in a child template HTML file. Finally, learn how to define multiple routes to point to the same route function.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Install flask in a virtual environment on your development machine
    Write the code for a simple "hello world" web site using flask
    Recognize how route definitions can be altered and the benefits of running your flask app in debug mode
    Define a route that renders an html page when a url is accessed
    Download and use some boilerplate html files so that your web site definition need not begin from scratch
  • Modify the boilerplate css and html definitions to customize the look of a web site
    Generate urls dynamically using the url_for function
    Create a base template that can be inherited by other templates, along with placeholders that can be overridden
    Inherit the elements from a base template in a child template html file
    Define multiple routes to point to the same route function
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 9s
    In this course, you will learn how to build a simple website using Flask. You will also discover how to speed up application development by downloading some boiler plate HTML content, which you then extend and customize for your own website. FREE ACCESS
  • 8m 29s
    In this video, you will learn how to install Flask in a virtual environment. FREE ACCESS
  • Locked
    3.  Creating a Basic Application on Flask
    6m 5s
    In this video, you will learn how to create a basic Flask application. You will also discover how to run your application on a local development server and how to close it down. FREE ACCESS
  • Locked
    4.  Exploring Route Definitions
    7m 41s
    In this video, you will learn how to make a couple of changes to your previous application. But for that, let us first bring back our application. So for that, we will run Python app.py and our web application has now been initialized and is running on port 5000 of our local host. You will also observe in this output that debug mode is off, and this is the default value. FREE ACCESS
  • Locked
    5.  Rendering HTML from Flask
    8m 2s
    In this video, you will learn how to render basic HTML in the application, and then following that, you will build upon the app so that more and more complex components are displayed on the page. FREE ACCESS
  • Locked
    6.  Using Boilerplate HTML for a Web Site
    9m 38s
    In this video, you will learn how to use boilerplate HTML for a web site. You will also discover how to download and apply your own customizations to the boilerplate code. FREE ACCESS
  • Locked
    7.  Customizing the Appearance of a Web Site
    9m 29s
    In this video, you will learn how to customize the appearance of a web site. You will also discover how to modify the colors for various elements within your page. FREE ACCESS
  • Locked
    8.  The url_for Function
    8m 52s
    In this video, you will learn how to create a website for your puppy shop. You will also discover how to define a route which renders the HTML file within the templates folder. FREE ACCESS
  • Locked
    9.  Defining a Base Jinja Template
    9m 7s
    In the previous video, we added a new page to our web application and this is the add.html page. FREE ACCESS
  • Locked
    10.  Inheriting the Base Jinja Template
    9m 11s
    In this video, you will learn how to implement template inheritance in Flask using Jinja. You will also discover how to inherit multiple components into two different web pages on your site, and override some of the components defined within the base template, within your child template. FREE ACCESS
  • Locked
    11.  Pointing Multiple URLs to the Same Endpoint
    8m 59s
    In this video, you will learn how to redefine links to static resources in your source files. You will also discover how to make each of these links more resistant to such changes. FREE ACCESS
  • Locked
    12.  Course Summary
    1m 18s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 15 users Rating 4.5 of 15 users (15)
Rating 4.6 of 50 users Rating 4.6 of 50 users (50)
Rating 4.6 of 8 users Rating 4.6 of 8 users (8)