+1 vote
in Data Handling by
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
+1 vote
asked Apr 4, 2020 in Data Handling by amita rallin
...