django-nonrel

Django – How to make a variable available to all templates?

Django – How to make a variable available to all templates? Question: I would like to know how to pass a variable to all my templates, without repeating the same code on every method in my views.py file? In the example below I would like to make categories (an array of category objects) available to …

Total answers: 1