title: MongoDb: ConnectionFailure: [Errno 111] Connection refused
body: <p>when I am trying to </p>
  
  <pre><code>python manage.py syncdb
  </code></pre>
  
  <p>The following error occure</p>
  
  <pre><code>ConnectionFailure: [Errno 111] Connection refused
  </code></pre>
  
  <p>I am switch my sqlite database to mongodb</p>
  
  <p>I am tring on python manage.py shell</p>
  
  <pre><code>In [1]: from pymongo import MongoClient
  
  In [2]: client = MongoClient()
  ---------------------------------------------------------------------------
  ConnectionFailure                         Traceback (most recent call last)
  /home/nik4u/Projects/ABEC-Dev-Env/local/lib/python2.7/site-packages/django/core/management/commands/shell.pyc in &lt;module&gt;()
  ----&gt; 1 client = MongoClient()
  
  /home/nik4u/Projects/ABEC-Dev-Env/local/lib/python2.7/site-packages/pymongo/mongo_client.pyc in __init__(self, host, port, max_pool_size, document_class, tz_aware, _connect, **kwargs)
      375             except AutoReconnect, e:
      376                 # ConnectionFailure makes more sense here than AutoReconnect
  --&gt; 377                 raise ConnectionFailure(str(e))
      378 
      379         if username:
  
  ConnectionFailure: [Errno 111] Connection refused
  </code></pre>