django-dynamic-breadcrumbs’s documentation
django-dynamic-breadcrumbs is a Django app to generate HTML breadcrumbs
dynamically from URL paths.
How does it work
A request is handled by Django at a specific URL:
https://example.com/reference/instrument/guitar/
A context processor analyze the URL, and extracts the path:
/reference/instrument/guitar/
For each part separated by / tries to resolve it and get the
specific View that handles that URL.
Adds to the request context a list of names and urls
home -> https://example.com
reference -> https://example.com/reference
instrument -> https://example.com/reference/instrument
guitar
The template shows the above list with links for each level
Home > Reference > Instrument > Guitar