set pattern in urls.py django code example Example: slug urls django path('<slug:slug>,<int:id>/', views.article_detail, name='article'),