From 7cfa4498a417f6b52a0c159dbd680496b47e279e Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Mon, 20 Aug 2012 13:39:48 -0400 Subject: fixed Bcfg2.settings if django not available --- src/lib/Bcfg2/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- cgit v1.2.3-1-g7c22