Browse Source

iot url->re_path

locky 2 years ago
parent
commit
0d40a41cfa
1 changed files with 1 additions and 1 deletions
  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()),