浏览代码

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()),