Ticket #10079: dj-context-reusable.patch

File dj-context-reusable.patch, 770 bytes (added by Kenneth Arnold, 16 years ago)
  • django/template/context.py

    diff --git a/django/template/context.py b/django/template/context.py
    index 8f16a95..9623dd1 100644
    a b  
    1 from django.conf import settings
    2 from django.core.exceptions import ImproperlyConfigured
    3 
    41_standard_context_processors = None
    52
    63class ContextPopException(Exception):
    class Context(object):  
    7067# This is a function rather than module-level procedural code because we only
    7168# want it to execute if somebody uses RequestContext.
    7269def get_standard_processors():
     70    from django.conf import settings
     71    from django.core.exceptions import ImproperlyConfigured
    7372    global _standard_context_processors
    7473    if _standard_context_processors is None:
    7574        processors = []
Back to Top