It works if I call insure_indexes() method. I can't understand why. Is
there to avoid it ?
My code that works :
>
> from django.test import TestCase
> from les_classiques.models import Author
> import mongoengine
>
>
> class DatabaseTest(TestCase):
> def setUp(self):
> db = mongoengi
>
> I realized that indexes have not been created by mongoengine :
>
db.author.getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"ns" : "poesie.author",
"name" : "_id_"
}
]
I'm s
>
> NB : I use Python 3.3.4, mongoengine 0.8.7, Django 1.6.2 and mongodb 2.0.6
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@google
3 matches
Mail list logo