Chapter 2. Small to Big – Growing the Flask Application Structure

Flask is a wonderful framework for people who want to write a very quick single-file application in order to prototype an API or to build a drop-dead simple website. What isn't immediately obvious, however, is just how flexible and adept Flask is at growing in larger, more modular application structures that are a necessity once the single-module layout becomes more burdensome than convenient. The major points that we will cover in this chapter are as follows:

  • How to convert a module-based Flask application to a package-based layout
  • How to implement Flask blueprints on top of a package-based application structure
  • How to ensure that our resulting application can be run with the built-in ...

Get Flask Blueprints 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.