Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #10079 -- Moved settings import inside the function that uses i…

…t so that the module can be imported without needing settings, thanks kcarnold and mcroydon.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9ac3905f013da7d9df997698c6d09c327b0f4dae 1 parent ef933f1
Gary Wilson Jr. authored March 30, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/template/context.py
2  django/template/context.py
... ...
@@ -1,4 +1,3 @@
1  
-from django.conf import settings
2 1
 from django.core.exceptions import ImproperlyConfigured
3 2
 from django.utils.importlib import import_module
4 3
 
@@ -71,6 +70,7 @@ def update(self, other_dict):
71 70
 # This is a function rather than module-level procedural code because we only
72 71
 # want it to execute if somebody uses RequestContext.
73 72
 def get_standard_processors():
  73
+    from django.conf import settings
74 74
     global _standard_context_processors
75 75
     if _standard_context_processors is None:
76 76
         processors = []

0 notes on commit 9ac3905

Please sign in to comment.
Something went wrong with that request. Please try again.