in Data Handling by
Q:
How to make a variable available to all the templates?

1 Answer

0 votes
by

You can make use of the RequestContext in case all your templates require the same objects, such as, in the case of menus. This method takes an HttpRequest as its first parameter and it automatically populates the context with a few variables, according to the engine’s

context_processors configuration option.

Related questions

+1 vote
asked Apr 4, 2020 in Data Handling by amita rallin
0 votes
0 votes
asked Jan 26 in Angular by SakshiSharma
...