---
source: https://iinventedlight.com/library/notes/flask-blueprints.md
title: "A Flask blueprint records routes to register on an application later"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "BSD-3-Clause (pallets/flask docs and source); prose restates cited source lines in own words"
license_family: flask-bsd3
attribution: "Summary by iinventedlight (AI-assisted). Sources: Flask docs and Flask source (pallets/flask), BSD-3-Clause (https://raw.githubusercontent.com/pallets/flask/main/LICENSE.txt). Notices: Flask documentation and source (pallets/flask): Copyright 2010 Pallets; BSD-3-Clause (https://raw.githubusercontent.com/pallets/flask/main/LICENSE.txt)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-11
status: published
approved_by: "Cole Withington, 2026-11-11 17:50 PT, Librarian chat widget t44s275: \"Yes, publish all 8 gap drafts\""
approved_by: "Cole Withington, 2026-11-11 17:59 PT, Engineer chat widget t716s3194: \"Yes, publish all 8 gap notes live\""
checked_on: 2026-11-11
as_of: 2026-11-11
confidence: medium
untested: "No Flask project was run for this note; only the fetched documentation and source files were read."
category: coding-references
topic_area: "code-backend: Flask blueprints"
tags: [flask, blueprints, routing, modular]
client: Librarian
sources:
  - id: S1
    title: "Modular Applications with Blueprints"
    publisher: Flask docs
    url: https://flask.palletsprojects.com/en/stable/blueprints/
    accessed: 2026-11-11
    license: "BSD-3-Clause"
  - id: S2
    title: "Blueprint class"
    publisher: Flask source
    url: https://github.com/pallets/flask/blob/main/src/flask/sansio/blueprints.py
    accessed: 2026-11-11
    license: "BSD-3-Clause"
---
# A Flask blueprint records routes to register on an application later

**Answer:** A Flask blueprint is not itself an application. It is a set of operations you register on an application, and you may do that more than once. You can register a blueprint at a URL prefix and/or subdomain, and it can provide template filters, static files, and templates.

## Why blueprints exist

Blueprints provide separation at the Flask level, share application config, and can change an application object when registered. When you decorate a function with `@blueprint.route`, the blueprint records the intent to register that function later. The blueprint name is prepended to the endpoint name; it does not itself change the URL.

You cannot unregister a blueprint from an already created application without destroying that application object.

## The class in source

`Blueprint` is a collection of routes and other app-related functions that can be registered later. It uses the same decorators as `Flask`, but defers the need for an application object by recording those calls.

## See also

- [flask-application](https://iinventedlight.com/library/notes/flask-application/)
- [flask-routing](https://iinventedlight.com/library/notes/flask-routing/)

## Claims

- id: C1
  claim: A Blueprint object is not an application; it describes how to extend one.
  source: S1
  evidence: "it is not actually an application."

- id: C2
  claim: Blueprints record operations and run them when registered on an app.
  source: S1
  evidence: "they record operations to execute when registered on an application."

- id: C3
  claim: A blueprint is a collection of routes registered on a real application later.
  source: S2
  evidence: "a collection of routes and other app-related functions that can be registered"

- id: C4
  claim: Blueprint decorators work like Flask's but record calls for later registration.
  source: S2
  evidence: "without requiring an application object ahead of time."

## Sources

- [S1] Modular Applications with Blueprints. Flask docs. https://flask.palletsprojects.com/en/stable/blueprints/ . License: BSD-3-Clause. Accessed 2026-11-11.

- [S2] Blueprint class. Flask source. https://github.com/pallets/flask/blob/main/src/flask/sansio/blueprints.py . License: BSD-3-Clause. Accessed 2026-11-11.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources and notices: Flask documentation and source (pallets/flask): Copyright 2010 Pallets; BSD-3-Clause (https://raw.githubusercontent.com/pallets/flask/main/LICENSE.txt). Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
