title: ImproperlyConfigured at / port must be an instance of int django mongodb
body: <p>Trying to move Django-MongoDB developement environment to production</p>
  
  <p>Keep getting the following error from web interface:</p>
  
  <pre><code>    ImproperlyConfigured at /
      port must be an instance of int
  </code></pre>
  
  <p>On terminal, if I run </p>
  
  <pre><code>    python manage.py syncdb
  
  
      File "/home/user/lib/python-environments/djangomongo/local/lib/python2.7/site-packages/pymongo/connection.py", line 209, in __init__
          raise TypeError("port must be an instance of int")
      django.core.exceptions.ImproperlyConfigured: port must be an instance of int
  </code></pre>