title: Setting up MongoDB + Django
body: <p>I am new to Mongo DB and Django. I've been trying to use Mongo DB as my primary Database for Django. I've installed MongoDB and Django-nonrel as per the following link:</p>
  
  <p><a href="http://django-mongodb-engine.readthedocs.org/en/latest/topics/setup.html#django-mongodb-engine" rel="nofollow">Django - MongoDB setup</a></p>
  
  <p>The version of django-nonrel, i am using is 1.7. Clone link to it:</p>
  
  <p><code>pip install git+https://github.com/django-nonrel/django@nonrel-1.7</code></p>
  
  <p>After following all steps, my settings.py in the django project file looks something like this:</p>
  
  <pre class="lang-py prettyprint-override"><code>DATABASES = {
      'default': {
          'ENGINE': 'django_mongodb_engine',
          'NAME': 'blink',
          'USER': '',
          'PASSWORD': '',
          'HOST': '127.0.0.1',
          'PORT': 1234,
      }
  }
  
  INSTALLED_APPS = (
      'djangotoolbox',
  )
  </code></pre>
  
  <p>But while running the manage.py using the following command:</p>
  
  <pre><code>python manage.py runserver
  </code></pre>
  
  <p>I am getting an error like this, </p>
  
  <pre><code>System check identified no issues (0 silenced).
  Unhandled exception in thread started by &lt;function check_errors.&lt;locals&gt;.wrapper at 0x104a95f80&gt;
      Traceback (most recent call last):
        File "/Users/sunilkumar/blink/lib/python3.3/site-packages/django/utils/autoreload.py", line 222, in wrapper
          fn(*args, **kwargs)
        File "/Users/sunilkumar/blink/lib/python3.3/site-packages/django/core/management/commands/runserver.py", line 107, in inner_run
          self.check_migrations()
        File "/Users/sunilkumar/blink/lib/python3.3/site-packages/django/core/management/commands/runserver.py", line 159, in check_migrations
          executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
        File "/Users/sunilkumar/blink/lib/python3.3/site-packages/django/db/utils.py", line 242, in __getitem__
          backend = load_backend(db['ENGINE'])
        File "/Users/sunilkumar/blink/lib/python3.3/site-packages/django/db/utils.py", line 108, in load_backend
          return import_module('%s.base' % backend_name)
        File "/Users/sunilkumar/blink/lib/python3.3/importlib/__init__.py", line 90, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
        File "&lt;frozen importlib._bootstrap&gt;", line 1584, in _gcd_import
        File "&lt;frozen importlib._bootstrap&gt;", line 1565, in _find_and_load
        File "&lt;frozen importlib._bootstrap&gt;", line 1532, in _find_and_load_unlocked
        File "&lt;frozen importlib._bootstrap&gt;", line 584, in _check_name_wrapper
        File "&lt;frozen importlib._bootstrap&gt;", line 1022, in load_module
        File "&lt;frozen importlib._bootstrap&gt;", line 1003, in load_module
        File "&lt;frozen importlib._bootstrap&gt;", line 560, in module_for_loader_wrapper
        File "&lt;frozen importlib._bootstrap&gt;", line 853, in _load_module
        File "&lt;frozen importlib._bootstrap&gt;", line 980, in get_code
        File "&lt;frozen importlib._bootstrap&gt;", line 313, in _call_with_frames_removed
        File "/Users/sunilkumar/blink/lib/python3.3/site-packages/django_mongodb_engine/base.py", line 265
          raise ImproperlyConfigured, exc_info[1], exc_info[2]
                                    ^
      SyntaxError: invalid syntax
  </code></pre>
  
  <p>I am not able to understand what the error is. Can somebody please help.?</p>