mongoengine
mongoengine copied to clipboard
[Moved to mongoengine/mongoengine]
Here's what I'm trying to do. Using a regex causes "TypeError: cannot deepcopy this pattern object" import re MyDocument.objects(domain='amazon.com') if subject: filter(subject=re.compile('.*')) Any suggestions? I realize there are some ways...
Simple feature request - it would be quite helpful to my application to have a SetField type that accepts and returns a Python set instead of a list.
The [documentation](http://docs.mongoengine.org/en/latest/guide/connecting.html#connecting-to-mongodb) states that > Database, username and password from URI string overrides corresponding parameters in `connect()` In my understanding that meant that parameters passed through the URI would override...
Database connection without the "mongodb://" URI is not working for me. Username and password (among others) keyword arguments passed to `mongoengine.connect` are being popped from the `conn_settings` dictionary by the...
``` python Unconfirmed.objects.insert([Unconfirmed(shift=s) for s in nlu.items()]) ``` and inside Unconfirmed class I have a save method that is never called during operation above. But if I do ``` python...
``` python """ Demonstrate a somewhat obscure bug with ListField(ReferenceField()). 1) Create an object with an empty ListField(ReferenceField()). - the field can either be left empty (using the default value),...
I configure my settings.py as follows: DATABASES = { 'default': { 'ENGINE': 'mongoengine', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'study_center', # Or path to database file if using...
There doesn't seem to be a way to rename a column in a document. I would like to do an operation similar to the below MongoDB Query using a MongoEngine...
[Mongoengine documentation](http://docs.mongoengine.org/guide/querying.html#counting-results) states: > Just as with limiting and skipping results, there is a method on QuerySet objects – count(), but there is also a more Pythonic way of achieving...
I wrote a model that use manytomany relationships, the code are here: 1 from mongoengine import * 2 3 connect('article') 4 class Tag(Document): 5 tag_name = StringField(max_length=30) 6 posts =...