0

How to connect a mongodB to django 1.8 or above???

DATABASES = {

'default' : {

      'ENGINE' : 'django_mongodb_engine',

      'NAME' : 'my_database'

   }

}

it doesn't work..

franklinsijo
  • 17,784
  • 4
  • 45
  • 63
  • have you added correct HOST, USER, PORT settings – Anubhav Agarwal Feb 28 '17 at 11:25
  • What error u r getting? Did u try after installing Django MongoDB Engine.? – MSD Feb 28 '17 at 11:45
  • yeah i install mongoengine and toolbox and i changed setting.py as MONGODB_DATABASES = { "default": { "name": 'myDb', "host": 'localhost:27017', "password": '', "username": 'root', "tz_aware": True, # if you using timezones in django (USE_TZ = True) }, } i tried this but it shows mongo is not a django backend database. – AnkurBelbase Feb 28 '17 at 14:52
  • Possible duplicate of [Django 1.8 and MongoDB?](https://stackoverflow.com/questions/32256173/django-1-8-and-mongodb) – alex Oct 29 '18 at 17:56

0 Answers0