ソースを参照

iot url->re_path

locky 2 年 前
コミット
0d40a41cfa
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Ansjer/urls.py

+ 1 - 1
Ansjer/urls.py

@@ -294,7 +294,7 @@ urlpatterns = [
     url(r'^device/StatisticsIpRegion$', DeviceConfirmRegion.StatisticsIpRegion.as_view()),
 
     # Iot Core
-    url(r'iot/(?P<operation>.*)$', IotCoreController.IotCoreView.as_view()),
+    re_path('iot/(?P<operation>.*)$', IotCoreController.IotCoreView.as_view()),
 
     # S3预签名
     url(r's3_getsts/(?P<operation>.*)$', S3GetStsController.S3GetStsView.as_view()),