From the course: Flask Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Blueprints and views for organization

Blueprints and views for organization

From the course: Flask Essential Training

Start my 1-month free trial

Blueprints and views for organization

- [Instructor] Up to this point when we've been creating this Flask application, everything has been directly tied into that app, all of our routes, our secret key. But, as our app would continue to grow if we were going to continue development, it could get really messy to have everything right here inside of this one file. And you can imagine if we added a blog and maybe a scheduling thing onto our app as we just built and built, it would get really complicated. In Flask, you can break things into sections called blueprints, and those blueprints allow you to have some sort of organization to your code so that everything's not in one place. So, I want to show you how to do this, so that in the future, you can do this in your own project, and you'll see how it's useful for both testing and deployment, which we're going to be covering here. So, although we really only have one blueprint for this app, you'll see how it can…

Contents