Flask in Python: Building a Simple Web Site Using Flask
Flask
| Beginner
- 12 videos | 1h 29m
- Includes Assessment
- Earns a Badge
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 courseInstall flask in a virtual environment on your development machineWrite the code for a simple "hello world" web site using flaskRecognize how route definitions can be altered and the benefits of running your flask app in debug modeDefine a route that renders an html page when a url is accessedDownload 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 siteGenerate urls dynamically using the url_for functionCreate a base template that can be inherited by other templates, along with placeholders that can be overriddenInherit the elements from a base template in a child template html fileDefine multiple routes to point to the same route functionSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 9sIn 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 29sIn this video, you will learn how to install Flask in a virtual environment. FREE ACCESS
-
6m 5sIn 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
-
7m 41sIn 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
-
8m 2sIn 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
-
9m 38sIn 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
-
9m 29sIn 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
-
8m 52sIn 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
-
9m 7sIn the previous video, we added a new page to our web application and this is the add.html page. FREE ACCESS
-
9m 11sIn 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
-
8m 59sIn 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
-
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.