阿晨1998
views.py12def article_detail(request, slug): passurls.py12345urlspattern = [ ... path('articles/<slug:slug>/', views.article_detail), # re_path(r'^articles/(?P<slug>[\w-]+)/$', views.article_detail),}