Ticket #10079: 10079-reusable-context.2.diff

File 10079-reusable-context.2.diff, 874 bytes (added by mcroydon, 16 years ago)
  • django/template/context.py

    diff --git a/django/template/context.py b/django/template/context.py
    index 1f13659..24c0dfd 100644
    a b  
    1 from django.conf import settings
    2 from django.core.exceptions import ImproperlyConfigured
    3 from django.utils.importlib import import_module
    4 
    51_standard_context_processors = None
    62
    73class ContextPopException(Exception):
    class Context(object):  
    7167# This is a function rather than module-level procedural code because we only
    7268# want it to execute if somebody uses RequestContext.
    7369def get_standard_processors():
     70    from django.conf import settings
     71    from django.core.exceptions import ImproperlyConfigured
     72    from django.utils.importlib import import_module
    7473    global _standard_context_processors
    7574    if _standard_context_processors is None:
    7675        processors = []
Back to Top