pymongo

2019-02-11 Thread B.navya spoorthi Sweety
hi all, i am trying to update all documents in collection using pymongo here is my update function, def update(): for doc in mycol.find(): mycol.update({},{"$set":{"status":"approved"}}) but using above code i am able to update only one docum

Django, uwsgi, gevent, Pymongo

2016-03-24 Thread Web Architect
Hi, We have a live site running on Django and uwsgi. Pymongo is being used in the application for MonogoDB. uwsgi is being used to run the Django application. As per Pymongo docs, it has been suggested to use Gevent monkey patching: https://api.mongodb.org/python/current/examples/gevent.html