Flask Nested Blueprints Example

Channel Avatar
Comment
X
Share
Flask Nested Blueprints Example
Flask Nested Blueprints Example
They’re handy for adding common behavior such as authentication or grouping up related blueprints.

REFERENCE LINKS
—————————————————
https://nickjanetakis.com/blog/flask-nested-blueprints-example

COURSES
—————————————————
Courses I’ve created that focus on web dev and deployment topics.

https://nickjanetakis.com/courses/

THE TOOLS I USE / GEAR
—————————————————
https://nickjanetakis.com/blog/the-tools-i-use

FOLLOW ME ELSEWHERE
—————————————————
Twitter: https://twitter.com/nickjanetakis
GitHub: https://github.com/nickjj

TIMESTAMPS
—————————————————
0:00 — Intro
0:04 — A few nested blueprints use cases
1:36 — We’ll make a versioned API
2:18 — Create app function
2:52 — Defining an API v1 parent blueprint with bearer token authentication
5:08 — Checking out the todos child blueprint of API v1
6:20 — Registering a blueprint on another blueprint
6:53 — Please don’t use this exact auth decorator in production
7:41 — Automated tests and referencing child blueprints with url_for
9:20 — Going over the git diff for all of the changes

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Keywords: flask, blueprints, nested

Read Also

Leave a Reply

Your email address will not be published. Required fields are marked *