Some solutions provided on doing a Google search for \"Django breadcrumbs\" include using templates and block.super, basically just extending the base blocks and adding the
Obviously, no one best answer, but for practical reason I find that it is worth considering the naïve way. Just overwrite and rewrite the whole breadcrumb... (at least until the official django.contrib.breadcrumb
released )
Without being too fancy, it is better to keep things simple. It helps the newcomer to understand. It is extremely customizable (e.g. permission checking, breadcrumb icon, separator characters, active breadcrumb, etc...)
{% block breadcrumb %}
{% endblock breadcrumb %}
{% block content %}{% endblock content %}
Later on each pages we rewrite and overwrite the whole breadcrumb block.
{% extends 'base.html' %}
{% block breadcrumb %}
{% endblock breadcrumb %}
Realworld use cases: