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
1
vote
0 answers

syncdb not working in Django nonrel using django_mongodb_engine

I have Django-nonrel(1.3), django toolbox and django mongodb engine installed and working. However, when I try to syncdb I get an error: ...django/db/models/fields/subclassing.py", line 28, in inner return func(*args, **kwargs) RuntimeError: maximum…
Wedava
  • 1,211
  • 2
  • 16
  • 30
1
vote
2 answers

How to setup MongoDB with Django

I've followed numerous tutorials on how to setup a Django project with MongoDB but still get the same errors when running the command for testing: python manage.py runsever Here is the link I've been following:…
James Brown
  • 919
  • 3
  • 13
  • 22
1
vote
1 answer

AttributeError: 'tuple' object has no attribute 'insert'

I have installed the following, from http://www.django-mongodb.org/topics/setup.html django-nonrel djangotoolbox mongodb-engine after installing i tried to run my program using python manage.py runserver it showing an error like the…
Sakeer
  • 1,885
  • 3
  • 24
  • 43
1
vote
2 answers

django-mongodb engine saves data in which collection?

I am using django-mongodb engine to connect django with mongodb. I have a model in my application named as bandwidth. when i save data through python manage.py shell , it saves data in a collection named as app_bandwidth. How does this engine saves…
Dania
  • 1,007
  • 1
  • 14
  • 21
1
vote
2 answers

Unit testing failure using django-mongo-engine

I built up a website by using django 1.3, Mongodb, and django-mongo-engine. When I run the server by using "manage.py runserver", it is successful. But when I try to do unit testing by "manage.py test", it somehow fails. Here is the settings.py…
1
vote
1 answer

ListField with ForeignField in django-nonrel

It seems hard to find a complete example of using ListField with ForeignField in django-mongo-engine.. my logic looks like below, class GameSession(models.Model): # id => token, is global unique random code id =…
Jason Xu
  • 2,903
  • 5
  • 31
  • 54
1
vote
0 answers

shortened field name in django for mongodb usage

I'm using django-norel + mongodb + django-mongo-engine to build some application. for mongodb, a short enough field name is meaningful to save some space use bcz the the field name will completely exist in the record. For django development, is…
Jason Xu
  • 2,903
  • 5
  • 31
  • 54
0
votes
0 answers

using mongodb with motor driver and django

i'm creating an App, using async driver(motor) for mongodb. I have a telegram bot app and django framework app. I want my telegram and web apps use same database. When i try to create User via integrated CreateView class, by default django uses it's…
0
votes
1 answer

Database error in django+mongodb objects.fiter with boolean field

I am using djongo library to handle mongodb, but still getting database error while filtering queryset using a boolean field. Error: No exception message supplied, django.db.utils.DatabaseError from django.contrib.auth import get_user_model User =…
0
votes
0 answers

How to concat new string value with existing value in mongoengine while doing update?

I want concat new string value with existing value. suppose i have 3 document in my collection { "field" : "some" } { "field" : "value" } { "field" : "test" } i want to write a update query which will concat "new" with existing value . My…
Aninda
  • 97
  • 5
  • 14
0
votes
1 answer

django_mongodb_engine ImproperlyConfigured

I am trying to setup the environment for Django+MongDB+Mongodbengine. However, I am still getting the error, django.core.exceptions.ImproperlyConfigured: 'django_mongodb_engine' isn't an available database backend. I use following command to…
Casey Cao
  • 341
  • 3
  • 15
0
votes
0 answers

Django and Mongodb: can't find the django-nonrel for Django 1.9

I am a beginner in Django. I'm trying to set up Mongodb with Django 1.9 but I can't find the Django-nonrel version that goes with my Django version. The only django-nonrel version I find are 1.5 and 1.3, I've found that the last version is "master"…
khadija.EL
  • 307
  • 5
  • 17
0
votes
1 answer

Using Sql and MongoDb with Django rest framework for apis

I am new to django and it to use sql db as default but also connect it to mongoldb. In my models.py i from mongoengine import Document, EmbeddedDocument, fields class ToolInput(EmbeddedDocument): name = fields.StringField(required=True) …
0
votes
1 answer

Getting error with mongodbforms of django

I have installed mongodbforms along with mongoengine. But till now i haven't written a single code still i am getting error on mongodbforms file how ? from mongoengine.base import NON_FIELD_ERRORS as MONGO_NON_FIELD_ERRORS ImportError: cannot…
sheikhsalman08
  • 387
  • 1
  • 9
  • 18
0
votes
1 answer

Error was: cannot import name BaseDatabaseOperations

I am making an application using mongodb and django.i cant find any other way to connect my database with django.So use mongokit for connection And i getting this error :- command prompt- python manage.py runserver Traceback (most recent call…