# UUID sequence pasted in url returns a "Page not found" error (404)

**URL:** <https://forum.codewithmosh.com/t/uuid-sequence-pasted-in-url-returns-a-page-not-found-error-404/11091>\
**Category:** Django\
**Created:** [March 5, 2022, 11:49pm UTC](https://forum.codewithmosh.com/t/uuid-sequence-pasted-in-url-returns-a-page-not-found-error-404/11091 "2022-03-05T23:49:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Handlordz](https://avatars.discourse-cdn.com/v4/letter/h/8e8cbc/32.png) [@Handlordz](https://forum.codewithmosh.com/u/Handlordz)\
**Post date:** [March 5, 2022, 11:49pm UTC](https://forum.codewithmosh.com/t/uuid-sequence-pasted-in-url-returns-a-page-not-found-error-404/11091/1 "2022-03-05T23:49:08Z")

</div>

Hi everyone,

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)

| Request Method: | GET |
| --- | --- |
| Request URL: | [http://127.0.0.1:8000/store/carts/7fd7585f-49f3-4009-83c6-49a97aba16f3](http://127.0.0.1:8000/store/carts/7fd7585f-49f3-4009-83c6-49a97aba16f3) |

I don’t understand why I can’t reach the cart instance.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![tooTALLtim](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/tootalltim/32/5469_2.png) [@tooTALLtim](https://forum.codewithmosh.com/u/tooTALLtim)\
**Post date:** [January 29, 2023, 1:40am UTC](https://forum.codewithmosh.com/t/uuid-sequence-pasted-in-url-returns-a-page-not-found-error-404/11091/2 "2023-01-29T01:40:17Z")

</div>

Mosh’s video cut off the beginning of the solution where he adds “RetrieveModelMixin” to the CartViewSet so it becomes:

```auto
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:

> [@Django: The current url path didn’t match any of generated url patterns](https://forum.codewithmosh.com/t/django-the-current-url-path-didn-t-match-any-of-generated-url-patterns/17766):
>
> I implemented an api, which can create a cart with UUID. When I tried to get a cart using a url like [http://localhost:8001/store/carts/b4ff4b1b9fdc4c2d8ad09a8323c805dc/](http://localhost:8001/store/carts/b4ff4b1b9fdc4c2d8ad09a8323c805dc/), the browser returned 404 page not found. I’m sure this cart\_id:b4ff4b1b9fdc4c2d8ad09a8323c805dc is stored in the store\_cart table in the database. I checked the generated url patterns from django and I found out the cart url patterns were not included cart\_details pattern. Anyone knows what cause this issue?

> [@Designing and Implementing a Shopping Cart API - Lesson 5 - Missing part?](https://forum.codewithmosh.com/t/designing-and-implementing-a-shopping-cart-api-lesson-5-missing-part/8157/8):
>
> Edit I’ve solved my bug, I didn’t add (RetrieveModelMixin) to the cart view set expressionless so make sure you add this model to the cart view set , see 8:30 of the lesson 5 getting card Thank you so much @ariel.robaldo I appreciate your reply.
