20👍
✅
Use regex notation
router.register(
r'(?P<client_id>\d+)/requests',
views.ClientRequests,
basename='clients request api endpoint'
)
👤JPG
Source:stackexchange.com