I have three templates:
- Base_template
- first_template
- second_template
first_template and second_template extend base_template. So, they have the same aside bar. And I need to pass the same context to these templates. Of course, I can make it once in the first view and then in the second. But, to my mind, it will not a good practice. Or, I can make a function in utils.py and add it to context_processors, but then It will be passed to all website.
What should I do? Give me an advice, please.
Thanks.