summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Hostbase.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins/Hostbase.py')
-rw-r--r--src/lib/Server/Plugins/Hostbase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Hostbase.py b/src/lib/Server/Plugins/Hostbase.py
index d217b723e..80afa0c06 100644
--- a/src/lib/Server/Plugins/Hostbase.py
+++ b/src/lib/Server/Plugins/Hostbase.py
@@ -2,6 +2,7 @@
__revision__ = '$Revision$'
import sys, os
+os.environ['DJANGO_SETTINGS_MODULE'] = 'Hostbase.settings'
from lxml.etree import Element, SubElement
from syslog import syslog, LOG_INFO
from Bcfg2.Server.Plugin import Plugin, PluginExecutionError, PluginInitError, DirectoryBacked
@@ -48,7 +49,6 @@ class Hostbase(Plugin):
Plugin.__init__(self, core, datastore)
files = ['zone.tmpl', 'reversesoa.tmpl', 'named.tmpl', 'reverseappend.tmpl',
'dhcpd.tmpl', 'hosts.tmpl', 'hostsappend.tmpl']
- os.environ['DJANGO_SETTINGS_MODULE'] = 'Hostbase.settings'
## try:
## self.repository = DataNexus(self.data + '/templates/',
## files, self.core.fam)