@@ -228,25 +228,6 @@ def push_state(self, template, isolated_context=True):
228
228
self .pop ()
229
229
230
230
231
- from django .utils .module_loading import import_string
232
- _standard_context_processors = None
233
-
234
- # This is a function rather than module-level procedural code because we only
235
- # want it to execute if somebody uses RequestContext.
236
- def get_standard_processors ():
237
- from django .conf import settings
238
- global _standard_context_processors
239
- if _standard_context_processors is None :
240
- processors = []
241
- collect = []
242
- collect .extend (_builtin_context_processors )
243
- collect .extend (settings .GTEMPLATE_CONTEXT_PROCESSORS )
244
- for path in collect :
245
- func = import_string (path )
246
- processors .append (func )
247
- _standard_context_processors = tuple (processors )
248
- return _standard_context_processors
249
-
250
231
class RequestContext (Context ):
251
232
"""
252
233
This subclass of template.Context automatically populates itself using
@@ -261,18 +242,12 @@ def __init__(self, request, dict_=None, processors=None, use_l10n=None, use_tz=N
261
242
self ._processors = () if processors is None else tuple (processors )
262
243
self ._processors_index = len (self .dicts )
263
244
264
- updates = dict ()
265
- #@TODO@ Prakash to Implement context processor
266
- for processor in get_standard_processors ():
267
- updates .update (processor (request ))
268
- self .update (updates )
269
-
270
245
# placeholder for context processors output
271
- # self.update({})
246
+ self .update ({})
272
247
273
248
# empty dict for any new modifications
274
249
# (so that context processors don't overwrite them)
275
- # self.update({})
250
+ self .update ({})
276
251
277
252
@contextmanager
278
253
def bind_template (self , template ):
0 commit comments