Parcourir la source

path -> re_path

locky il y a 1 an
Parent
commit
6d876bb468
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      azoauth/urls.py

+ 1 - 1
azoauth/urls.py

@@ -38,7 +38,7 @@ urlpatterns = [
     url(r'^vseesTest/(?P<operation>.*)', index.VesseTest.as_view()),  # test
 
     # app to app oauth2验证登录连接
-    path('appToApp/oa2/(?P<operation>.*)', AppToApp.Oa2View.as_view()),
+    re_path('appToApp/oa2/(?P<operation>.*)', AppToApp.Oa2View.as_view()),
 
     # 域名备案网站
     re_path('(?P<path>.*)', beian.beianPath),