class documentation
This subclass of template.Context automatically populates itself using the processors defined in the engine's configuration. Additional processors can be specified as a list of callables using the "processors" keyword argument.
Method | __init__ |
Undocumented |
Method | bind |
Undocumented |
Method | new |
Return a new context with the same properties, but with only the values given in 'values' stored. |
Instance Variable | request |
Undocumented |
Instance Variable | template |
Undocumented |
Instance Variable | _processors |
Undocumented |
Instance Variable | _processors |
Undocumented |
Inherited from Context
:
Method | __copy__ |
Undocumented |
Method | update |
Push other_dict to the stack of dictionaries in the Context |
Instance Variable | autoescape |
Undocumented |
Instance Variable | render |
Undocumented |
Instance Variable | template |
Undocumented |
Instance Variable | use |
Undocumented |
Instance Variable | use |
Undocumented |
Inherited from BaseContext
(via Context
):
Method | __contains__ |
Undocumented |
Method | __delitem__ |
Delete a variable from the current context |
Method | __eq__ |
Compare two contexts by comparing theirs 'dicts' attributes. |
Method | __getitem__ |
Get a variable's value, starting at the current context and going upward |
Method | __iter__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __setitem__ |
Set a variable in the current context |
Method | flatten |
Return self.dicts as one dictionary. |
Method | get |
Undocumented |
Method | pop |
Undocumented |
Method | push |
Undocumented |
Method | set |
Set a variable in one of the higher contexts if it exists there, otherwise in the current context. |
Method | setdefault |
Undocumented |
Instance Variable | dicts |
Undocumented |
Method | _reset |
Undocumented |
def __init__(self, request, dict_=None, processors=None, use_l10n=None, use_tz=None, autoescape=True):
(source)
¶
overrides
django.template.context.Context.__init__
Undocumented
overrides
django.template.context.BaseContext.new
Return a new context with the same properties, but with only the values given in 'values' stored.