Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
gdub committed Mar 30, 2009
1 parent ef933f1 commit 9ac3905f013da7d9df997698c6d09c327b0f4dae
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/template/
@@ -1,4 +1,3 @@
-from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module
@@ -71,6 +70,7 @@ def update(self, other_dict):
# This is a function rather than module-level procedural code because we only
# want it to execute if somebody uses RequestContext.
def get_standard_processors():
+ from django.conf import settings
global _standard_context_processors
if _standard_context_processors is None:
processors = []

0 comments on commit 9ac3905

Please sign in to comment.