yf_yzl 2 年之前
父节点
当前提交
267f39d5c4
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 0 0
      apps/apply_weather.py
  2. 3 1
      bigdataAPI/urls.py

utils/apply_weather.py → apps/apply_weather.py


+ 3 - 1
bigdataAPI/urls.py

@@ -15,6 +15,7 @@ Including another URLconf
 """
 # from django.contrib import admin
 from django.urls import path, include
+from apps.apply_weather import GetWeather
 
 urlpatterns = [
     # path('admin/', admin.site.urls),
@@ -22,5 +23,6 @@ urlpatterns = [
     path('user/', include('apps.UserApp.urls')),
     path('equipment/', include('apps.Equipment.urls')),
     path('pestanalysis/', include('apps.PestAnalysis.urls')),
-    path('qxzconfig/', include('apps.QxzApp.urls'))
+    path('qxzconfig/', include('apps.QxzApp.urls')),
+    path("yf_weather", GetWeather.as_view(), name="weather")
 ]