Check out example codes for "slug urls django". It will help you in understanding the concepts better.

Code Example 1

path('<slug:slug>,<int:id>/', views.article_detail, name='article'),

Learn ReactJs, React Native from akashmittal.com