1👍
✅
I don’t think the string manipulation you want to do is possible from the template side. I think a possible way is using a custom template filter that receives request.path and returns a list of tuples (link, text) and then iterate over that list on the template side and create the breadcrumbs.
https://docs.djangoproject.com/en/1.9/howto/custom-template-tags/#writing-custom-template-filters
Source:stackexchange.com