Summary

We now have our app working inside a blueprint, but what does this give us? Let's say that we wanted to add a photo sharing function to our site; we would be able to group all the view functions into one blueprint with its own templates, static folder, and URL prefix without any fear of disrupting the functionality of the rest of the site. In the next chapter, blueprints will be made even more powerful by separating them into different files after upgrading our file and code structure.

Get Mastering Flask now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.