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"),
]