-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
djongo' isn't an available database backend #171
Comments
In my opinion, you need to install djongo by pip. |
Have the same problem. |
I have the same problem, how to solve it |
You haven't installed djongo. |
i got the same problem as well, both commands doesnt work for me. DATABASES = { what could be the solution? |
well I solved problem by removing virtual environment and reinstalling all the packages again. |
and how to do that? please tell me... |
activating virtual env |
You need to install djongo using this CMD |
The same, djongo worked fine, but after a few migrations there was an error:
django 2.2.1 UPD: |
django.core.exceptions.ImproperlyConfigured: 'django.db.backends.cx_Oracle' isn't an available database backend. I got same problem....I installed Oracle database...can you explain how to establish connection in settings.py file.... |
It's django, not djongo please guys... |
Having the same problem, I have verified that djongo is installed and it shows up in
Not sure if this is a windows issue or not.
|
Absolutely same situation. Is there a way to solve it?
pymongo 3.8.0
|
Following the reinstalling packages advice, this worked for me:
If you do not have a requirements file already you can create it with |
I had the same issue, and I solved it by copy djongo folder to my project. and it's work. |
Same here. djongo is installed with pip under virtual environment, yet it isn't picked up. |
Djongo is installed with pip under virtual environment, yet it isn't picked up. |
Guys, Please Use django 2.2.8 . Because djongo is not compatible with Django's latest version 3.0. Cheers |
@Rajat-verma-99 |
I still have the same problem after downgrading Django to v 2.2.8. |
Finally I could make it by creating a new project based on Django v2.2 so the "djongo' isn't an available database backend" error was solved. After that, I had to install pymongo[srv] in order to complete the whole setup, I ran the following command: 'python -m pip install pymongo[srv]'. |
The problem is with the latest version of Django. Downgrade it to the later version i.e. version 2. |
@Nebotxavi Could you Please share the screenshots of the error that you are facing? |
`Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Was just going through the tut for Django and wanted to try it with "djongo". Using conda for my package manager. Got same issue but then I downgraded to Django 2.2 suggested by @Nebotxavi Was able to verify the creation of the collection on mongo
|
This error occurs because the django utils.py file does not recognize that django is an available backend, |
For me it worked with
Basically when you |
Using python3.8 in my virtual environment fixed my issues with djongo isn't an available database backend |
Por si alguien esta teniendo este problema, a mi también me funcionó esta solución |
As well for me, it works with Mongodb Atlas |
Hello guys,look I'd recommendation write |
Well, I got the same problem with my pipenv activated. Later, I figured out djongo was not installed in my pipenv. I just installed it. It's been working fine now. |
i did - i got the same error and somewhere in between this was written -
i did |
Django==4.0.2 this works perfectly fine! |
The solution I found is to run makemigrations from powershell without the env. |
https://gist.github.com/uneconomicalfairy14/0d23275414122217c65882a56a30d615 this is a sure solution to this problem |
what exactly is the problem send in the errors |
This looks like a good configuration. Thank you! |
It's not working for me, can anyone help? |
it worked for me |
i think it should be in documents :/ |
lol |
It worked for me too @davoodghaffarilive Big Thank you Would be cool if mongodB support came out of the box. |
installing 'pip install pytz' worked for me! |
installing |
It worked for me: |
This works fine thanks |
django installed by djongo as a dependency. just remove any installation of django and try to install djongo
|
In my case it was because the pip install of
Installing the missing dependency solved the issue. So if re-installing djongo doesn't resolve the issue I'd suggest trying to import |
What I found was that the venv Lib/site-packages/django/db/backends needs to have the djongo lib installed there. I simply copied the Lib/site-packages/djongo folder into the backends folder and it works. Hope this helps! |
some updated version of Pymongo is not compatible with Django so you can either downgrade the Django version or upgrade the Pymongo version to a compatible version. |
This pitz is sh#t... I spent 2 days to find this problem... |
Link returns 404 error |
https://gist.github.com/tanmaypanda-14/0d23275414122217c65882a56a30d615 had to change my username sorry for the delay |
I think that the newer versions of pymongo and djongo are not compatible: This works:
|
for me |
Maybe I am late to the party. But it may help you....changing pymongo version helped me but I was still unable to run the app. Then I realized that I had to add my VPS IP address to the mongoDB atlas. |
try pip install djongo==1.3.6 |
djongo' isn't an available database backend
The text was updated successfully, but these errors were encountered: