Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Intro to Flask
Rating: 4.5 out of 5(334 ratings)
4,566 students

Intro to Flask

A short course that teaches you the fundamentals of Flask.
Created byAnthony Herbert
Last updated 3/2018
English

What you'll learn

  • Be able to create a web app using Python and Flask.

Course content

1 section8 lectures53m total length
  • Introduction1:50

    Explore Flask from zero to a working guestbook app, illustrating core concepts used in larger Flask projects. Prepare with Python and a local database driver of your choice.

  • Hello App5:36

    Install Flask in a virtual environment, create a single guestbook.py, import Flask, instantiate app, define the index route, return hello there, and run in debug mode on port 5000.

  • Endpoints5:39

    Learn how to define multiple endpoints in Flask, create a home route with URL parameters, and restrict methods with get or post, while using debug mode for automatic restarts.

  • Templates10:01

    Learn how to use templates in flask to separate email content from Python code, create a templates directory, and render templates with variables, conditionals, and loops using Jinja.

  • Guest Book Templates5:29

    Set up a Flask app with templates and a static directory, load bootstrap CSS, create routes for index and sign, and use url_for to link templates and static resources.

  • Process Form6:07

    Set up a Flask post route to process form data from the guestbook, reading name and comment with request.form, and render the index template with those values.

  • Database16:43

    Learn to connect a Flask app to a remote MySQL database using Flask-SQLAlchemy, create a comments table, persist guestbook entries, query and display them, and redirect after submission.

  • Wrap Up2:15

    Extend the Flask guestbook app with pagination, explore deeper into alchemy, enhance security through input sanitization and validation, enable admin edit/delete of comments, and prettify the user interface with Bootstrap.

Requirements

  • Basic understanding of Python and how the web works.

Description

This eight part series was created for those without experience in Flask. By watching these videos, you'll go from knowing nothing about Flask to building a working app. You'll see how far just knowing basic Python can get you when using Flask to build a web app.

The app built in this course is a guest book app.

This course assumes basic understanding of Python, SQL databases, and HTML

Who this course is for:

  • Anyone who wants to use Python to build web apps.