1
0
mirror of https://github.com/django/django.git synced 2025-07-19 09:09:13 +00:00

[1.0.X]: Fixed #10079 -- Moved settings import inside the function that uses it so that the module can be imported without needing settings, thanks kcarnold and mcroydon.

Backport of r10209 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Gary Wilson Jr 2009-03-30 20:16:43 +00:00
parent ef28364365
commit daae84a8e0

View File

@ -1,4 +1,3 @@
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured
_standard_context_processors = None _standard_context_processors = None
@ -70,6 +69,7 @@ class Context(object):
# This is a function rather than module-level procedural code because we only # This is a function rather than module-level procedural code because we only
# want it to execute if somebody uses RequestContext. # want it to execute if somebody uses RequestContext.
def get_standard_processors(): def get_standard_processors():
from django.conf import settings
global _standard_context_processors global _standard_context_processors
if _standard_context_processors is None: if _standard_context_processors is None:
processors = [] processors = []