django.core.exceptions.ImproperlyConfigured: 'django_mongodb_engine' isn't an available database backend

14,509

Solution 1

You need django-nonrel installed as well, as per the documentation.

Solution 2

Try uninstalling 'Pymongo' and install it as 'pip install pymongo' as compared to installing it via an ide

Share:
14,509
randomuser
Author by

randomuser

Updated on July 26, 2022

Comments

  • randomuser
    randomuser almost 2 years

    I'm unable to run django mongo engine properly.

    My database entry in settings.py is

    DATABASES = {
    'default': {
        'ENGINE': 'django_mongodb_engine',
        'NAME': 'local',
    }
    }
    

    and my pip freeze result is

    Django==1.8.2
    django-mongodb-engine==0.5.2
    djangotoolbox==1.6.2
    pymongo==3.0.2
    

    error while running

    python manage.py runserver
    

    is

    django.core.exceptions.ImproperlyConfigured: 'django_mongodb_engine' isn't an available database backend.
    Try using 'django.db.backends.XXX', where XXX is one of:
    u'base', u'mysql', u'oracle', u'postgresql_psycopg2', u'sqlite3'
    Error was: cannot import name BaseDatabaseFeatures
    

    Any suggestions how to solve this.

  • randomuser
    randomuser almost 9 years
    trying this : pip install git+github.com/django-nonrel/[email protected] but nothing is happening after this. Any alternatives to install django-nonrel?
  • Yannis
    Yannis over 6 years
    This sounds more like a comment and not as an answer to this question. If I am wrong, please edit your answer to clearly demonstrate how this answers the question. Otherwise, please leave it as a comment once you earn enough reputation.
  • Octocat
    Octocat about 4 years
    Hi, how did you fix the issue "React app with Django error 'string indices must be integers'"? You seem to have deleted the question on StackOverflow.
  • Admin
    Admin over 2 years
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.