|
|
@@ -1,9 +1,4 @@
|
|
|
# coding=utf-8
|
|
|
-from smartfarming.api.views.forecast.all_dict import insect_dict
|
|
|
-from smartfarming.models.pest_count import MongoCBDPestWarning
|
|
|
-from smartfarming.models.worm_forecast import MongoCBDphoto
|
|
|
-from smartfarming.models.sim_card import MongoMsg_Conf
|
|
|
-from django.conf import settings
|
|
|
import os
|
|
|
import sys
|
|
|
import time
|
|
|
@@ -16,7 +11,11 @@ if local_path not in sys.path:
|
|
|
sys.path.append(local_path)
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kedong.settings")
|
|
|
django.setup()
|
|
|
-
|
|
|
+from smartfarming.api.views.forecast.all_dict import insect_dict
|
|
|
+from smartfarming.models.pest_count import MongoCBDPestWarning
|
|
|
+from smartfarming.models.worm_forecast import MongoCBDphoto
|
|
|
+from smartfarming.models.sim_card import MongoMsg_Conf
|
|
|
+from django.conf import settings
|
|
|
|
|
|
logger = logging.getLogger("other")
|
|
|
|