0

Currently my settings.py looks something like this

DATABASES = {
    'default': {
        'ENGINE': 'django_mongodb_engine',   
        'NAME': 'gb',                      
        'USER': '',                      
        'PASSWORD': '',                  
        'HOST': 'localhost',                      
        'PORT': '27017'                      
    }
}

and I am using django version is 1.4. The problem is when I try python manage.py syncdb it throws the following error

 db = dbs[DEFAULT_DB_ALIAS]
 KeyError: 'default'

Any help would be great. Thanks

Nicolas Cortot
  • 6,591
  • 34
  • 44
Karthik
  • 144
  • 1
  • 6

1 Answers1

0

Basically, you need to use a fork of Django and not vanilla django. Unfortunately the site is down right now for me but the documentation and tutorial for django non-rel mongodb_engine is here: http://www.django-mongodb.org/ or you can contact via the usergroup see the project page on github https://github.com/django-nonrel/mongodb-engine

Ross
  • 17,861
  • 2
  • 55
  • 73