django-dynamic-breadcrumbs’s documentation

django-dynamic-breadcrumbs is a Django app to generate HTML breadcrumbs dynamically from URL paths.

How does it work

  1. A request is handled by Django at a specific URL:

    https://example.com/reference/instrument/guitar/

  2. A context processor analyze the URL, and extracts the path:

    /reference/instrument/guitar/

  3. For each part separated by / tries to resolve it and get the specific View that handles that URL.

  4. 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
  1. The template shows the above list with links for each level

    Home > Reference > Instrument > Guitar

Indices and tables

Reference