2.0内的path匹配正则时候无效时,导入re_path即可
from django.urls import path,re_path
from king_admin import views
urlpatterns = [
path('', views.index,name="table_index"),
re_path('(\w+)/(\w+)/', views.dispaly_table_objs,name="table_objs"),
]
from django.urls import path,re_path
from king_admin import views
urlpatterns = [
path('', views.index,name="table_index"),
re_path('(\w+)/(\w+)/', views.dispaly_table_objs,name="table_objs"),
]