Django docs say Context object is a stack:
from django.template import Context c = Context() c['a'] = 1 c.push()
Also the docs say
Using context as a stack comes in handy in some custom template tags.
However, there is no example for this. My suggestion: it is useful to make outsoles with a clean context; but instead, you can simply use the new empty Context() object.
So what is the use case?
source share