On Sun, Oct 25, 2020 at 9:45 AM iopasd...@gmail.com <iopasd753...@gmail.com>
wrote:

> I made it using viewset and serializer.
> The primary key has been set to email, and this error has occurred in
> detail
>
> What's unique is that when you write an e-mail, you only see
> {"detail":"Not found."} on the white screen.
>

This is likely because your code is returning something that bypasses
content-negotiation (
https://www.django-rest-framework.org/api-guide/responses/)


>
> However, if you write down a number, the error message appears on the
> Django DRF page.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-framework+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-rest-framework/f0336a15-5b88-4480-ad57-d3b35b4d079dn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-rest-framework/f0336a15-5b88-4480-ad57-d3b35b4d079dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CA%2BFDnhLP2jW1XNp%3DgvEG0kvWpGJwqG5cGO4zrhAof%2BxOs0uAyg%40mail.gmail.com.

Reply via email to