title: Problem with importing new Mongo database into the server
body: <p>I have a Django-based website on the server. I am not really professional at this btw!
  So, I started the website on the server showing some data from MongoDB.
  This time I would like to change the DB to the newer one. This is what I am doing:</p>
  <p>First I drop the last DB: (On venv):</p>
  <pre><code>$ mongo &lt;db_name&gt; --eval 'db.aggregation__class.drop'
  </code></pre>
  <p>Then I scp (the new db) JSON-exported file into a server directory.
  Then I call the mongo to activate that new db:</p>
  <pre><code>$ mongoimport --db &lt;new db name&gt; --collection &lt;new db collection name&gt; --file &lt;server directory&gt;
  </code></pre>
  <p>I also checked if the db is activated by this:</p>
  <pre><code>$ mongo &lt;new db name&gt; --eval
  </code></pre>
  <p>And it is working.</p>
  <p>The problem is when I am calling it in the views.py, it does not show that it is connecting to the new db. Consider the fact that it was working with the last db!</p>
  <p>views.py</p>
  <pre><code># connect to MongoDb Database
  myclient = MongoClient(port=27017)
  mydatabase = myclient[db_name]
  classagg = mydatabase['aggregation__class']
  database_text = classagg.find()
  </code></pre>
  <p>Any suggestion would be appreciated. Thanks</p>