Image file upload - process - download

2019-05-21 Thread gt stack
1. 1. I want the client to access the website *www.abc.com* 2. 2. Then upload an *IMAGE FILE* 3. 3. Process the image at the server and return the processed file back to the client I wish to know how to accomplish this task in *python* using *Flask* and

"'MongoClient' object is not iterable" in Django Rest Framework

2019-05-21 Thread Gautam Ajani
Hello Guys, I am trying to learn DRF and so that I have started one sample project in Django Rest. And For that project, I want to use MongoDB in DRF so I have setup mongoengine in it. But I have been facing this following error when I try to run it. raise TypeError("'MongoClient' object is

Re: ThreadedListSerializer - will this cause me any problems?

2019-05-21 Thread Kyle Edwards
while performance is improved with list serializers for models that included additional computed properties, curiously this implementation only works when the server receive a single request, and serialization of that request finishes before the next request. If however the server receives co

.save() method returning an saved instance of object but object creation does not take place in DB

2019-05-21 Thread Sarthak Adhikari
THE PROBLEM Whenever I send data through post, the data gets validated, I get an output with save() method(I get a PK implying that the object was saved?) but the creation does not take place in the DB. I tried running UsrInDys.objects.create() from the shell and everything seemed to work fin