title: How to configure settings.py for mongodb ?
body: <p>I created django web app that use mongo database , I connet to mongo with pymongo  </p>
  
  <pre><code> def load_database():
      mongo = pymongo.Connection('127.0.0.1')
      db = mongo['database'] 
  </code></pre>
  
  <p>when I tried to load my web app , I get error  </p>
  
  <pre><code>Exception Type:
  
  ImproperlyConfigured
  
  
  
  Exception Value:
  
  settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details. 
  
  
  Exception Location:
  
  Python-2.7/lib/python2.7/site-packages/django/db/backends/dummy/base.py in complain, line 15
  </code></pre>
  
  <p>it looks that settings.py is wrong configured , here is my settings.py : </p>
  
  <pre><code>MANAGERS = ADMINS
  
  DATABASES = {
  'default': {
  'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or     
  'NAME': '',                      # Or path to database file if using sqlite3.
   # The following settings are not`enter code here` used with sqlite3:
  'USER': '',
  'PASSWORD': '',
  'HOST': '',                      # Empty for localhost through domain sockets or   '
  'PORT': '',                      # Set to empty string for default.
  }
  }
  </code></pre>
  
  <p>Can someone tell me what is wrong  ? when I load homepage that don't coneect to mongo , only static files it loads fine , when I click on buttom on hoempage that gets data from mongo database and print out that data , I get this error .  Also I tried python manage.py syncdb but gets error : ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE   value. Check settings documentation for more details. </p>