Not working for django version greater than 3.0
One line description of the issue
Unable to integrate into Django version greater than 3.0
ERROR: djongo 1.3.0 has requirement django<3,>=2.0, but you'll have django 3.0.3 which is incompatible.
Getting following errorr when django downgraded to 2.2.10
django.core.exceptions.ImproperlyConfigured: 'djongo' isn't an available database backend.
Even if you get around the requirements issue you still get this -
django.core.exceptions.ImproperlyConfigured: 'djongo' isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
'mysql', 'oracle', 'postgresql', 'sqlite3'
+1. need immediate fix for this @nesdis
Use django 2.2.10, and uninstall bson and remove the directory. Then go in the pymongo github repo (https://github.com/mongodb/mongo-python-driver.git) and clone it. Replace the bson directory you removed with the new cloned directory
$ pip uninstall bson
$ rm -rf [Your Bson Directory]
$ git clone https://github.com/mongodb/mongo-python-driver.git
$ cd mongo-python-driver
$ cp bson [Your Bson Directory]
Your bson directory could be found when installing, in case you don't know:
$ pip uninstall bson
Found existing installation: bson 0.5.8
Uninstalling bson-0.5.8:
Would remove:
/Users/jayjay/anaconda3/envs/djongo/lib/python3.8/site-packages/bson-0.5.8.dist-info/*
/Users/jayjay/anaconda3/envs/djongo/lib/python3.8/site-packages/bson/*
Would not remove (might be manually added):
/Users/jayjay/anaconda3/envs/djongo/lib/python3.8/site-packages/bson/_cbson.cpython-38-darwin.so
/Users/jayjay/anaconda3/envs/djongo/lib/python3.8/site-packages/bson/binary.py
It would be the /Users/jayjay/anaconda3/envs/djongo/lib/python3.8/site-packages/bson/ that you remove.
Use django 2.2.10, and uninstall bson and remove the directory. Then go in the pymongo github repo (https://github.com/mongodb/mongo-python-driver.git) and clone it. Replace the bson directory you removed with the new cloned directory
$ pip uninstall bson $ rm -rf [Your Bson Directory] $ git clone https://github.com/mongodb/mongo-python-driver.git $ cd mongo-python-driver $ cp bson [Your Bson Directory]
this worked for me thanks a lot dude.
Use django 2.2.10, and uninstall bson and remove the directory. Then go in the pymongo github repo (https://github.com/mongodb/mongo-python-driver.git) and clone it. Replace the bson directory you removed with the new cloned directory
$ pip uninstall bson $ rm -rf [Your Bson Directory] $ git clone https://github.com/mongodb/mongo-python-driver.git $ cd mongo-python-driver $ cp bson [Your Bson Directory]
can confirm that this workaround works. I got a wagtail installation running with this.
+1 @nesdis please awaiting for this support
I made a fork for the eventual git pull. Once I can get it to pass tox, I'll make the request. Currently running into a TypeError when running tests against v2.2, so if anyone wants to help, I'd be grateful.
https://github.com/fsecada01/djongo/tree/master
I already have a PR at https://github.com/nesdis/djongo/pull/374 https://github.com/nesdis/djongo/pull/374, but it currently does not have tests.
On Mar 17, 2020, at 1:47 PM, Francis Secada [email protected] wrote:
I made a fork for the eventual git pull. Once I can get it to pass tox, I'll make the request. Currently running into a TypeError when running tests against v2.2, so if anyone wants to help, I'd be grateful.
https://github.com/fsecada01/djongo/tree/master https://github.com/fsecada01/djongo/tree/master — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nesdis/djongo/issues/364#issuecomment-600209639, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2ZVVHFXWY736OWV7GTXJ3RH6ZUBANCNFSM4KPVLU5A.
Hello, I am integrating a mongo database into my project. I can absolutly not roll back to django 2.x. Should I use another connector ? :)
I already have a PR at #374 <#374>, but it currently does not have tests. … On Mar 17, 2020, at 1:47 PM, Francis Secada @.***> wrote: I made a fork for the eventual git pull. Once I can get it to pass tox, I'll make the request. Currently running into a TypeError when running tests against v2.2, so if anyone wants to help, I'd be grateful. https://github.com/fsecada01/djongo/tree/master https://github.com/fsecada01/djongo/tree/master — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#364 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2ZVVHFXWY736OWV7GTXJ3RH6ZUBANCNFSM4KPVLU5A.
That PR is only compatible with Python3.6. My fork will hopefully be compatible with 3.6+ onward.
Also, is it important for six to be used throughout the build since Python2 is EOL?
I have python 3.8.1 and the build works.
Then could you add testing for python3.7 and 3.8 environments in the tox.ini file of your pull?
Sorry, but I don't know how to add testing :-(
You can add this to the environment list, and Travis CI should be able to spin out new virtualenvs with the python versions.
envlist =
py36-django{21, _stable}
py37-django{21, _stable}
py38-django{21, _stable}
I'm using Django 3.1, and got error like this:
djongo 1.3.3 requires django<=3.0.5,>=2.1
Is there any intention to support Django 3.1.* in (near) future? Anybody caring about this?
Is it still accepting max. Django 3.0? Django 4.0 is already out... I was thinking about implementing it into my new big project but now I am not sure.