Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django.core.exceptions.ImproperlyConfigured: 'djongo' isn't an available database backend or couldn't be imported. Check the above exception. #681

Open
PrateekSai opened this issue Sep 13, 2023 · 6 comments

Comments

@PrateekSai
Copy link

I am getting this error while I run the command python manage,py migrate while connecting to mongodb database using djongo django.core.exceptions.ImproperlyConfigured: 'djongo' isn't an available database backend or couldn't be imported. Check the above exception. To use one of the built-in backends, use 'django.db.backends.XXX', where XXX is one of:
'mysql', 'oracle', 'postgresql', 'sqlite3 I have verified my environment is active and djongo is in the list of installed apps

@jkhurshed
Copy link

I am getting this error while I run the command python manage,py migrate while connecting to mongodb database using djongo django.core.exceptions.ImproperlyConfigured: 'djongo' isn't an available database backend or couldn't be imported. Check the above exception. To use one of the built-in backends, use 'django.db.backends.XXX', where XXX is one of: 'mysql', 'oracle', 'postgresql', 'sqlite3 I have verified my environment is active and djongo is in the list of installed apps

I'm getting the same error, did you resolve this problem?

@comatan96
Copy link

I am getting this error while I run the command python manage,py migrate while connecting to mongodb database using djongo django.core.exceptions.ImproperlyConfigured: 'djongo' isn't an available database backend or couldn't be imported. Check the above exception. To use one of the built-in backends, use 'django.db.backends.XXX', where XXX is one of: 'mysql', 'oracle', 'postgresql', 'sqlite3 I have verified my environment is active and djongo is in the list of installed apps

I'm getting the same error, did you resolve this problem?

I had this error too, it seems like Djongo is not supported with Django>=4.2
The following version worked for me, but I have problems with migrations now:

Django==4.1.13
pymongo==3.12.3
dnspython
djongo==1.3.6

@SzymKam
Copy link

SzymKam commented Feb 26, 2024

I also got this problem. You have to add 'djongo' into INSTALLED APPS in settings.py

@apnarasimhareddy
Copy link

Still getting the same error after adding djongo to the apps

@apnarasimhareddy
Copy link

When installing "pytz" package, the issue is resolved

@arilivigni
Copy link

I am getting this error while I run the command python manage,py migrate while connecting to mongodb database using djongo django.core.exceptions.ImproperlyConfigured: 'djongo' isn't an available database backend or couldn't be imported. Check the above exception. To use one of the built-in backends, use 'django.db.backends.XXX', where XXX is one of: 'mysql', 'oracle', 'postgresql', 'sqlite3 I have verified my environment is active and djongo is in the list of installed apps

I'm getting the same error, did you resolve this problem?

I had this error too, it seems like Djongo is not supported with Django>=4.2 The following version worked for me, but I have problems with migrations now:

Django==4.1.13
pymongo==3.12.3
dnspython
djongo==1.3.6

This works for me to get around the error:

raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: 'djongo' isn't an available database backend or couldn't be imported. Check the above exception. To use one of the built-in backends, use 'django.db.backends.XXX', where XXX is one of:
    'mysql', 'oracle', 'postgresql', 'sqlite3'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants