On Fri, 2006-08-18 at 09:51 +0900, Sean Schertell wrote: > Yay!!! It works like magic! > > Would anyone be so kind as to reveal the mysteries of this "Context > ()" function? I'd love to know what this code is doing and why it > fixes my problem.
Context() isn't a function, it's creating a class instance (django.template.context.Context is the class involved). The Context class acts like a dictionary and a stack: you can push a new empty dictionary onto the stack, fill it with keys and values, use it a bit and then pop it off later to get back to your previous dictionary instance. This feature is used in a few places, block overriding being one of them. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---