mongoengine
What is the proper way to update a listfield of embedded documents in mongoengine?
I am trying to define methods for performing checks and updates to a listfield of embedded documents in mongoengine. W开发者_开发问答hat is the proper way of doing what I\'m trying to do. The code is[详细]
2023-04-01 05:54 分类:问答mongoengine - index on a key inside of an embedded document?
MongoDB allows for an index on a key inside of an embedded document: db.things.ensureIndex({\"address.city\": 1})[详细]
2023-03-27 17:48 分类:问答Celery task seems to do everything except write to the database
I am using Django with MongoEngine, django-celery and the MongoDB backend for celery. I am queuing one task. The task involves fetching a file from GridFS (through the MongoEngine FileField), manipula[详细]
2023-03-22 06:26 分类:问答Flask and Mongo [closed]
As it currently stands, this quest开发者_高级运维ion is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely so[详细]
2023-03-20 02:12 分类:问答Inserts with Mongoengine work only from shell, but not from Django view
I am having strange situation - creating some Mongoengine object from Django shell is successful, but creating the same object from Django view looks like successful but without any data appeared in M[详细]
2023-03-20 01:42 分类:问答Insanely weird django-mongoengine error
This is the most weird and illogical error I have ever seen. I am using django+mongoengine, and lets say my view is:[详细]
2023-03-17 02:26 分类:问答Too many open mongoDB connections when using Celery
I\'m using 开发者_如何学CCelery to download feeds and resize images. The feeds and image paths are then stored in MongoDB using mongoengine. When I check current connections (db.serverStatus()[\"conne[详细]
2023-03-14 20:19 分类:问答Using MongoEngine Document class methods for custom validation and pre-save hooks
I am currently exploring the possibilities of the MongoEngine \"object document mapper\". What is currently not clear to me is to what extent I can move my validation and object creation logic to the[详细]
2023-03-08 07:09 分类:问答Connecting to multiple mongodb instances from django
I am using mongoengine with Django and within my project need to connect to two instances of MongoDB while serving single request. It works just fine 开发者_如何学Pythonif I use:[详细]
2023-03-07 09:57 分类:问答Form labels not rendering with Django & WTForms
I\'m trying to use WTForms with Django & a MongoEngine/MongoDB database backend. The forms are outputting properly, but I can\'t for the life of me get the labels to show up.[详细]
2023-03-06 10:03 分类:问答