yf_yzl 2 년 전
부모
커밋
99252bd5ab
1개의 변경된 파일5개의 추가작업 그리고 6개의 파일을 삭제
  1. 5 6
      scripts/cbd_msg.py

+ 5 - 6
scripts/cbd_msg.py

@@ -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")