Re: While running unit tests the wrong parser is being used.

2019-12-09 Thread José Manuel Valdivia Romero
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

Re: How to Handle exceptions in production environment?

2019-12-09 Thread José Manuel Valdivia Romero
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

Re: How to Handle exceptions in production environment?

2019-12-09 Thread Sam Purtill
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

Re: How to Handle exceptions in production environment?

2019-12-09 Thread Roberth Mejias
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

Relation does not exist in Nested Serialization

2019-12-09 Thread Yery cs
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',

How to Handle exceptions in production environment?

2019-12-09 Thread William Méndez
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

Django Rest Framework Nested Serializer does not work.

2019-12-09 Thread Yery cs
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