{"detail":"Not found."}

13 views
Skip to first unread message

iopasd...@gmail.com

unread,
Oct 25, 2020, 10:45:37 AM10/25/20
to Django REST framework
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.

However, if you write down a number, the error message appears on the Django DRF page.

Matemática A3K

unread,
Oct 25, 2020, 2:11:01 PM10/25/20
to django-res...@googlegroups.com
On Sun, Oct 25, 2020 at 9:45 AM iopasd...@gmail.com <iopasd...@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-fram...@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.
Reply all
Reply to author
Forward
0 new messages