# Python and Flask: Web Development From Scratch

In this topic, we'll cover all the basics of Python and Flask, including Jinja, inheritance, and web forms.

#### TECHNOLOGIES

Flask

#### WATCH TIME

39 minutes

## Lessons

#### Understanding Templates and Jinja

This video will cover the fundamentals of templates in flask, how to return a webpage instead of plain text and send variables to the frontend!

6 min

#### Routing and Variable Rules

This video will cover the fundamentals of routing in Flask, creating our own routes and adding variable rules to get data from the URL!

6 min

#### Diving into Jinja2

This video will cover an in-depth coverage of Jinja2/Jinja, the language used by flask in templates. We'll learn how to add conditional statements and loops into our template code!

8 min

#### Web Forms with Flask-wtf

This video will cover web forms in flask using the Python module Flask-wtf!

7 min

#### Template Inheritance and Block Content

This video will cover reusability of HTML code through template inheritance and block content in Jinja2!

5 min

#### Getting data from Web Forms

This video will cover getting data from web forms in Flask using the Python module Flask-wtf!

4 min

#### Getting Started with Flask

This video will cover getting started with Flask, setting up our very own web server with Flask and display Hello World!

6 min

### Hey! I’m Avi, and I’ll teach you how to build!

I'm Avi, your new Python instructor and founder of The Codex.

Three years ago I was stuck. I wasn’t learning anything in my theory-filled CS classes, my friends took pictures of me sleeping in lecture, and I was questioning why I was even learning CS to begin with. I had ideas but I was clueless on execution.

After watching hours of webcasted YouTube videos, enrolling in course after course, and struggling to stay motivated, I finally obtained the skills to bring my ideas to life. I realized how lonely and gruesome this process was.

If you’re a student just like me, you know exactly what it’s like to be stuck in course hell. The best programmers of today learned by doing, not by reading syntax in a textbook.

Join The Codex. Become a creator.

COMMUNITY LOVE

## Savvy Students ❤️ The Codex

The Codex has helped hundreds of students find jobs and build their dream projects.

“I saw my friends building dope projects at hackathons. My CS classes taught how to add items to a linked list, but not how to _convert my ideas to actual applications_. What started as a simple Python Weather dashboard on The Codex transformed into the Best DS/AI project at SunHacks.

Brandon Wang

UC Berkeley, 2024

Two-time hackathon winner

## Ready to dive in?  Start learning today.

[Get Started](/content/app/get-started/index.html)
