register_blueprint() — flask Function Reference
Architecture documentation for the register_blueprint() function in blueprints.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD fed3f3dd_fb9c_9cc0_fcd6_bb40208b8981["register_blueprint()"] 0c59fa87_9a90_f011_4207_98ae96479921["Blueprint"] fed3f3dd_fb9c_9cc0_fcd6_bb40208b8981 -->|defined in| 0c59fa87_9a90_f011_4207_98ae96479921 4e097242_324c_5d02_a967_41ca85d1f371["register_blueprint()"] 4e097242_324c_5d02_a967_41ca85d1f371 -->|calls| fed3f3dd_fb9c_9cc0_fcd6_bb40208b8981 4e097242_324c_5d02_a967_41ca85d1f371["register_blueprint()"] fed3f3dd_fb9c_9cc0_fcd6_bb40208b8981 -->|calls| 4e097242_324c_5d02_a967_41ca85d1f371 style fed3f3dd_fb9c_9cc0_fcd6_bb40208b8981 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/flask/sansio/blueprints.py lines 256–271
def register_blueprint(self, blueprint: Blueprint, **options: t.Any) -> None:
"""Register a :class:`~flask.Blueprint` on this blueprint. Keyword
arguments passed to this method will override the defaults set
on the blueprint.
.. versionchanged:: 2.0.1
The ``name`` option can be used to change the (pre-dotted)
name the blueprint is registered with. This allows the same
blueprint to be registered multiple times with unique names
for ``url_for``.
.. versionadded:: 2.0
"""
if blueprint is self:
raise ValueError("Cannot register a blueprint on itself")
self._blueprints.append((blueprint, options))
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does register_blueprint() do?
register_blueprint() is a function in the flask codebase, defined in src/flask/sansio/blueprints.py.
Where is register_blueprint() defined?
register_blueprint() is defined in src/flask/sansio/blueprints.py at line 256.
What does register_blueprint() call?
register_blueprint() calls 1 function(s): register_blueprint.
What calls register_blueprint()?
register_blueprint() is called by 1 function(s): register_blueprint.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free