
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.
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.
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.
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.
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.
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.
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.
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.
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