Questions tagged [django-mongodb-engine]

Django MongoDB Engine is a MongoDB database backend for Django.

Django MongoDB Engine is a database backend adding support for MongoDB to the Django web framework.

85 questions
28
votes
4 answers

Cannot find command 'git' - windows

I am trying to install mongodb_engine with my python django application, however I am getting this error Cannot find command 'git' I am trying this command from mongodb documentation.…
ETS
  • 516
  • 2
  • 7
  • 15
13
votes
4 answers

ImportError: No module named objectid

I have currently django-mongodb-engine 0.4.0 version installed on my Mac OS X 10.6.8 and weirdly encountered an interesting error while importing the 'compiler' module: >> from django_mongodb_engine import compiler and I got the following…
Ozgur Vatansever
  • 49,246
  • 17
  • 84
  • 119
11
votes
2 answers

Mongo engine query the referencefield

I have define the class statement: from mongoengine import * class TickDataDocument(Document): """ """ instrument_id = StringField(max_length=10, unique=True, required=True) tick_data = ReferenceField(TickDocument) class…
nooper
  • 691
  • 1
  • 9
  • 25
10
votes
7 answers

django.core.exceptions.ImproperlyConfigured: 'django_mongodb_engine' isn't an available database backend

I'm unable to run django mongo engine properly. My database entry in settings.py is DATABASES = { 'default': { 'ENGINE': 'django_mongodb_engine', 'NAME': 'local', } } and my pip freeze result…
randomuser
  • 1,201
  • 2
  • 10
  • 19
9
votes
3 answers

Problems with Django rest-framework DjangoModelPermissions allowing any authenticated user

I am trying to use DjangoModelPermissions and it does not seem to work properly. This is the code: class TestViewSet(viewsets.ModelViewSet): model = Test serializer_class = serializers.TestSerializer permission_classes =…
Fabiot
  • 429
  • 1
  • 4
  • 13
4
votes
3 answers

Use pymongo in django directly

I am building a website using Django and MongoDB. There are 2 popular API framework that we can use to connect Django and MongoDB, one is mongoengine and the other is django-mongodb-engine. Because the latest mongoengine is not supported Django…
Jimmy Lin
  • 1,481
  • 6
  • 27
  • 44
4
votes
1 answer

Tastypie-nonrel, django, mongodb: too many nestings

I am developing a web application with django, backbone.js, tastypie and mongodb. In order to adapt tastypie and django to mongodb I am using django-mongodb-engine and tastypie-nonrel. This application has a model Project, which has a list of Tasks.…
Markinhos
  • 736
  • 1
  • 6
  • 13
3
votes
3 answers

How to use Django with MongoDB

Can someone tell me how to use Django MongoDB Engine? I have followed the instructions here: http://django-mongodb.org/topics/setup.html All I get is this error: django.core.exceptions.ImproperlyConfigured: 'django_mongodb_engine.mongodb' isn't an…
DrWolfe
  • 159
  • 4
  • 13
3
votes
1 answer

MongoEngine: Embeddeddocument fields do not take default value as none?

I've set the default values for fields in embedded document but when I try to post data it doesn't accept None or Blank values. Here is what my code looks like- models.py class MetaData(EmbeddedDocument): adcode = StringField(max_length=50,…
3
votes
2 answers

why do I get a base_name attribute error when I include my view in a django Mongoengine web service url.py file?

I am trying to use django-rest-framework-mongoengine to build a webservice using Django and mongodb. I have an error when I include a url that lists my objects of type Document. My model file is class Job(Document): title =…
3
votes
0 answers

Tastypie + Django: How to filter on sub-documents?

I am trying to implement filtering in one of my data APIs built on Django(non-rel, mongodb-engine) + Tastypie(non-rel). I want to implement filtering on a sub-document inside my main document. The main documents in mongo looks like {"user_name":…
auny
  • 1,920
  • 4
  • 20
  • 37
3
votes
1 answer

How to sort Django admin column on a model method field (not a Model Field)

I followed some questions on this site to add a new column in the Django admin based on a model method. It works great. However, I cannot sort on the column. Is there a way to accomplish a sort on a model method field where there is no physical…
James
  • 2,488
  • 2
  • 28
  • 45
3
votes
1 answer

raise ImproperlyConfigured, exc_info[1], exc_info[2]

I created a django (1.6.1) project and using mongodb with it. when I ran the python manage.py runserver 0.0.0.0:8000 to start server it gives me the following error File "D:\Python34\lib\importlib\__init__.py", line 129, in import_module …
Muhammad Usman
  • 10,426
  • 22
  • 72
  • 107
3
votes
1 answer

Django non-rel failing to sync db with mongo 2.4.2

I have been using Django 1.3 non-rel with django-mongodb_engine 0.4. Mongodb version being used was 1.8.2 and things were working fine. Recently i tried to upgrade to mongodb 2.4.2(latest stable) release and faced the following issue. Upon syncing…
auny
  • 1,920
  • 4
  • 20
  • 37
3
votes
2 answers

Using MongoDB runCommand with Django MongoDb-engine

I am using mongodb-engine to access MongoDB from a Django project. Normal get, insert and update works quite well, but now would I like to use the geoNear functionality. I can just not figure out a way to call it from Django. I have tried…
SimonSays
  • 10,867
  • 7
  • 44
  • 59
1
2 3 4 5 6