Hi Carl,
I think you are using the wrong header in your request, try to use:
"Content-Type": "application/json"
Best Regards,
José Valdivia
Carl Nobile schrieb am Sa., 30. Nov. 2019, 19:15:
> I'm trying to run my unit tests using JSON however I'm getting this error:
>
> {'detail': ErrorDetail
Hi William,
To handle exceptions in production try to use some tool for it. There are a
lot of tools like Sentry or some other more advanced like Elastic APM (that
wont handle only exceptions but will give you some metrics regarding your
application).
Hope this can help,
Best Regards!
José Vald
Rollbar is also great!
Sam Purtill
LinkedIn ( https://www.linkedin.com/in/sampurtill/ )
415 367 5181
On Mon, Dec 9 2019 at 8:49 PM, < piedru...@gmail.com > wrote:
>
> Try Sentry
>
> On Monday, December 9, 2019 at 9:50:01 PM UTC-3, William Méndez wrote:
>> Hi folks!, I have a question, How to
Try Sentry
On Monday, December 9, 2019 at 9:50:01 PM UTC-3, William Méndez wrote:
>
> Hi folks!, I have a question, How to handle exceptions in production mode?.
>
>
> Greetings.
>
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To uns
Hello.
I am using Django Rest Framework and PostgreSQL Multi schemas.
from accounts.models import User
from myData.models import Private_ID_Info
class PrivateIDInfoSerializer(serializers.ModelSerializer):
class Meta:
model = Private_ID_Info
fields = ('first_name', 'last_name',
Hi folks!, I have a question, How to handle exceptions in production mode?.
Greetings.
--
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-fra
Hello. How are you?
I have met second problem in DRF.
#view.py
class TestView(viewsets.ViewSet):
def test(self, request):
serializer = UserInfoSerializer(request.user)
return Response(serializer.data)
#serializers.py
class PrivateIDInfoSerializer(serializers.ModelSerializer