[Answered ]-NoReverseMatch when referencing ModelViewSet and DefaultRouter URLs

1👍

Try to change this line

response = self.client.get(reverse('place-list'))

to

response = self.client.get(reverse('places-list'))

Whenever you register your APIs as places in your urls without naming it’s router.

If the above solution does not solve your problem use this one (since you’ve used name space in your urls and the default router name is places):

response = self.client.get(reverse('places:places-list'))
👤Roham

Leave a comment