Re: Connect to MongoDB Atlas using Django Rest Framework

2020-04-29 Thread Thousand Nano
It is easy and you can use pymongo to do that. Hope it helps. I usually dont use ORM for NoSQL because mongo has some amazing feature that will be lost if using conventional ORM. On Monday, April 27, 2020 at 4:57:09 AM UTC+8, Lawrence Thanakumar wrote: > > Hello All, > > I am building a movie rev

Missing "HTTP_AUTHORIZATION" header in request.META if the permission class is AllowAny

2020-04-29 Thread Thousand Nano
When my permission class is AllowAny, the "HTTP_AUTHORIZATION" key doesnt exist in the request.META dictionary when the request is using basic auth. Is this expected behavior? Interestingly, I am able to get this key if the request permission is setup as IsAutheticated. Does DRF remove this heade

Re: serializer save returns ​ DoesNotExis, MultipleObjectsReturned

2020-04-29 Thread Carl Nobile
It looks like you are, for some reason, returning a dump of the objects on the model, not the data. Something is messed up in your code. You might want to post the sterilizer *create* and *update* methods you created. On Wed, Apr 29, 2020 at 11:50 AM Nazish Akhtar wrote: > While saving serialize

serializer save returns ​ DoesNotExis, MultipleObjectsReturned

2020-04-29 Thread Nazish Akhtar
While saving serializer I am getting *DoesNotExist* , *MultipleObjectsReturned* . However objects are being saved in DB but signals such as post_save does not work. Custom Signal also does not work. Here is detailed error: 1 ['DoesNotExist', 'MultipleObjectsReturned', '__class__', '__delattr__'