fix environment
diff --git a/planetstack/plstackapi-debug-server.py b/planetstack/plstackapi-debug-server.py
index aa60119..2ed2b28 100644
--- a/planetstack/plstackapi-debug-server.py
+++ b/planetstack/plstackapi-debug-server.py
@@ -3,6 +3,7 @@
 import sys
 import threading
 
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "planetstack.settings")
 from planetstack.config import Config 
 from openstack.sliveragent import SliverAgent
 from openstack.siteagent import SiteAgent