set django_settings_module path
diff --git a/plstackapi/core/models.py b/plstackapi/core/models.py
index ec18626..5293251 100644
--- a/plstackapi/core/models.py
+++ b/plstackapi/core/models.py
@@ -1,6 +1,8 @@
+import os
from django.db import models
from plstackapi.openstack.driver import OpenStackDriver
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plstackapi.planetstack.settings")
# Create your models here.
class PlCoreBase(models.Model):
diff --git a/plstackapi/importer/plclassic/importer.py b/plstackapi/importer/plclassic/importer.py
index 8898e2b..8831afd 100644
--- a/plstackapi/importer/plclassic/importer.py
+++ b/plstackapi/importer/plclassic/importer.py
@@ -44,5 +44,4 @@
if __name__ == '__main__':
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plstackapi.planetstack.settings")
Importer().run()