set django_settings_module path
diff --git a/plstackapi/importer/plclassic/importer.py b/plstackapi/importer/plclassic/importer.py
index 4ec2f1e..8898e2b 100644
--- a/plstackapi/importer/plclassic/importer.py
+++ b/plstackapi/importer/plclassic/importer.py
@@ -1,3 +1,4 @@
+import os
import xmlrpclib
from plstackapi.importer.plclassic.site_importer import SiteImporter
from plstackapi.importer.plclassic.user_importer import UserImporter
@@ -41,3 +42,7 @@
self.slivers.run()
+
+if __name__ == '__main__':
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plstackapi.planetstack.settings")
+ Importer().run()
diff --git a/plstackapi/manage.py b/plstackapi/manage.py
index c12bf36..ea36bda 100644
--- a/plstackapi/manage.py
+++ b/plstackapi/manage.py
@@ -3,7 +3,7 @@
import sys
if __name__ == "__main__":
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "planetstack.settings")
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plstackapi.planetstack.settings")
from django.core.management import execute_from_command_line