html inside layouts and i make extends in other pages, all work fine but category menu (come from database) is hidden in some pages and i can see it just in one pages there is my code :
def produit_list(request):
produits = Produits.objects.all()
categories = Category.objects.all()
context = {
'produits':produits,
'categories':categories,
}
return render(request, 'shop.html', context)
#categories.html
<div class="col-md-4 pt-5">
<h2 class="h2 text-light border-bottom pb-3 border-light">Categories</h2>
<ul class="list-unstyled text-light footer-link-list">
{% for cat in categories %}
<li><a class="text-decoration-none" href="#">{{cat.name}}</a></li>
{% endfor %}
</ul>
</div>
i include this code inside base.html
i want know how to load it in all website like menu in bottom of every page, now i can see it just in shop.html.
Thank you