summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Bcfg2/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/settings.py b/src/lib/Bcfg2/settings.py
index ab71bbae5..05e85bb9a 100644
--- a/src/lib/Bcfg2/settings.py
+++ b/src/lib/Bcfg2/settings.py
@@ -142,7 +142,7 @@ TEMPLATE_DIRS = (
)
# TODO - sanitize this
-if django.VERSION[0] == 1 and django.VERSION[1] < 2:
+if has_django and django.VERSION[0] == 1 and django.VERSION[1] < 2:
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.debug',