Blueprint
Flask introduces the concept of blueprint for developing application components and command patterns in an application or across multiple applications. It helps to comprehend large-scale applications by centralizing the root Flask application object. Blueprint acts as a separate Flask application without creating an actual Flask application object, and is able to instantiate application objects, initialize several extensions, and register a collection. It also provides template filters, static files, templates, and other utilities.
As explained in the auth module, we will also create the Blueprint instance for the Todo application. This will be configured in the app.__init__.py file, which is where we created the Flask application ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access