How To Use Python On A Web Page With Jinja2 - Flask Fridays #2

Codemy.com January 22, 2021
Video Thumbnail
John Elder Logo

John Elder

@johnelderai

About

AI is taking over the world...let's get into it! OpenClaw, Claude Code, Manus, Perplexity, and whatever other weird AI stuff that comes along with a pinch of Python Programming thrown in from time to time. Check out my website JohnElder.AI and Codemy.com for more videos!

Video Description

In this video we'll start to look at the Jinja2 Template Language that allows us to use Python directly on our webpages. The best part of using a framework like Flask is the ability to use Python on a web page. Jinja allows us to do that...mostly. In this video we'll learn how to pass variables to our webpages, as well as other things like Python Lists. We'll also learn to use the built in filters that come with Jinja2, such as safe, capitalize, lower, upper, title, trim, striptags, and more. We'll also learn to use if statements and for loops on our webpage with Jinja.

Essential Camera Gear Carriers

AI-recommended products based on this video

Loading...
TAURI for iPhone 17 Pro Max Case 6.9" with 1-Pack Screen Protector, Camera Lens Full Protection, Military-Grade Protection, Shockproof Transparent Back Bumper Phone Cover - Clear Global Recycled Standard

TAURI for iPhone 17 Pro Max Case 6.9" with 1-Pack Screen Protector, Camera Lens Full Protection, Military-Grade Protection, Shockproof Transparent Back Bumper Phone Cover - Clear Global Recycled Standard

(0)
$10.76
FREE delivery Thu, Oct 16 on your first order
2K+ bought in past month
Loading...
TAURI for iPhone 17 Pro Case 6.3" with 1-Pack Screen Protector, Camera Lens Full Protection, Military-Grade Protection, Shockproof Transparent Back Bumper Phone Cover - Clear Global Recycled Standard
Best Seller

TAURI for iPhone 17 Pro Case 6.3" with 1-Pack Screen Protector, Camera Lens Full Protection, Military-Grade Protection, Shockproof Transparent Back Bumper Phone Cover - Clear Global Recycled Standard

(61,696)
$10.76
Prime
2K+ bought in past month
Loading...
GVIEWIN Compatible with Samsung Galaxy S25 Case 6.2" 2025, with Screen & Camera Lens Protector, Non-Yellow Flower Clear Anti-Scratch Shockproof Bumper Protective Girls Cover, Floratopia/Colorful

GVIEWIN Compatible with Samsung Galaxy S25 Case 6.2" 2025, with Screen & Camera Lens Protector, Non-Yellow Flower Clear Anti-Scratch Shockproof Bumper Protective Girls Cover, Floratopia/Colorful

(268)
$19.99
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
ivoler 3+3 Pack Tempered Glass for iPhone 16 Screen Protector 6.1'' [3 Pack] with [3 Pack] Camera Lens Protector with [Alignment Frame], Anti-Scratch Case Friendly Transparent HD Clear Film

ivoler 3+3 Pack Tempered Glass for iPhone 16 Screen Protector 6.1'' [3 Pack] with [3 Pack] Camera Lens Protector with [Alignment Frame], Anti-Scratch Case Friendly Transparent HD Clear Film

(36,815)
$11.99
FREE delivery Sat, Jun 14 on your first order
300+ bought in past month
Loading...
Cute Travel Bag for Nintendo Switch/2/Lite/OLED, Small Sling Portable Waterproof Backpack Carrying Crossbody Shoulder Chest Gaming Bag Case for NS SD Console Dock Joy-Cons Accessories Storage

Cute Travel Bag for Nintendo Switch/2/Lite/OLED, Small Sling Portable Waterproof Backpack Carrying Crossbody Shoulder Chest Gaming Bag Case for NS SD Console Dock Joy-Cons Accessories Storage

(405)
$18.99
FREE delivery Sun, Jun 15 on your first order
Loading...
ESR for iPhone 16 Pro Max Case, Camera Control Capture Button, Compatible with MagSafe, Shockproof Military-Grade Protection, Phone Case for iPhone 16 Pro Max, Classic Hybrid Case(HaloLock), Clear

ESR for iPhone 16 Pro Max Case, Camera Control Capture Button, Compatible with MagSafe, Shockproof Military-Grade Protection, Phone Case for iPhone 16 Pro Max, Classic Hybrid Case(HaloLock), Clear

(87,497)
$11.99$10.96
FREE delivery Sat, Sep 20 on your first order
500+ bought in past month
Loading...
tomtoc 360° Protective Laptop Sleeve for 15-inch MacBook Air M4/A3241 2025, M3/A3114 2024, M2/A2941 2023, 15-inch MacBook Pro A1990 A1707, Dell XPS 15 Plus Laptop, Water-Resistant Computer Case Bag Global Recycled Standard

tomtoc 360° Protective Laptop Sleeve for 15-inch MacBook Air M4/A3241 2025, M3/A3114 2024, M2/A2941 2023, 15-inch MacBook Pro A1990 A1707, Dell XPS 15 Plus Laptop, Water-Resistant Computer Case Bag Global Recycled Standard

(12,968)
$39.55
FREE delivery Tue, Jun 17
Loading...
tomtoc 360° Protective Laptop Sleeve for 13-inch New MacBook Air M4/A3240 2025, M3/A3113, M2/A2681 M1/A2337 A2179 A1932, 13-inch MacBook Pro M2/A2686 M1/A2338, Water-Resistant Computer Case Bag Global Recycled Standard

tomtoc 360° Protective Laptop Sleeve for 13-inch New MacBook Air M4/A3240 2025, M3/A3113, M2/A2681 M1/A2337 A2179 A1932, 13-inch MacBook Pro M2/A2686 M1/A2338, Water-Resistant Computer Case Bag Global Recycled Standard

(12,952)
$36.07
PrimeFREE delivery Sat, Jun 14
100+ bought in past month
Loading...
Bagtopia Puffer Tote Bag, Large Quilted Puffer Bag, Lightweight Puffy Quilted Hobo Bag, Soft Shoulder Bag for Work,Gym,Travel

Bagtopia Puffer Tote Bag, Large Quilted Puffer Bag, Lightweight Puffy Quilted Hobo Bag, Soft Shoulder Bag for Work,Gym,Travel

(94)
$34.99
FREE delivery Sat, Jun 14 on your first order
Loading...
RAINSMORE Large Sling Bag for Men Lightweight Waterproof Crossbody Bag Travel Hiking Bag Chest Bag Sling Backpack for Cycling Sport

RAINSMORE Large Sling Bag for Men Lightweight Waterproof Crossbody Bag Travel Hiking Bag Chest Bag Sling Backpack for Cycling Sport

(79)
$31.99
FREE delivery Thu, Jun 19 on your first order
50+ bought in past month
Loading...
FADEON Large Crossbody Bag for Women Crossbody Purse, Leather Cross Body Purses Multi Pocket Roomy Shoulder Bag

FADEON Large Crossbody Bag for Women Crossbody Purse, Leather Cross Body Purses Multi Pocket Roomy Shoulder Bag

(1,122)
$53.99
PrimeFREE delivery Sat, Jun 14
Loading...
RAINSMORE Laptop Bag for Women 15.6 inch Laptop Tote Bag Leather Large Capacity Work Tote Bag Waterproof Business Office Computer Bag Women Travel Handbag Shoulder Bag, Pink

RAINSMORE Laptop Bag for Women 15.6 inch Laptop Tote Bag Leather Large Capacity Work Tote Bag Waterproof Business Office Computer Bag Women Travel Handbag Shoulder Bag, Pink

(397)
$49.99
PrimeFREE delivery Sat, Jun 14
Loading...
Fewlby Kids Rain Suit for Boys Girls Toddler Raincoats One Piece Hoodie Cartoon Coverall Waterproof Rainwear M Size

Fewlby Kids Rain Suit for Boys Girls Toddler Raincoats One Piece Hoodie Cartoon Coverall Waterproof Rainwear M Size

(94)
$35.90
PrimeFREE delivery Sat, Jun 14