From Django Series: Part 2 - Designing and Implementing a Shopping Cart API - 5 - Getting a Cart,
when I paste UUID previously generated in page url, this message is returned:
Page not found (404)
I don’t understand why I can’t reach the cart instance.
Thank you for your help.
Mosh’s video cut off the beginning of the solution where he adds “RetrieveModelMixin” to the CartViewSet so it becomes:
class CartViewSet(CreateModelMixin, RetrieveModelMixin, GenericViewSet):
queryset = Cart.objects.all()
serializer_class = CartSerializer
You see that he added it at timestamp 8:36 of the lesson 5 video.
I found it from these smart people on the forum here and here: