Opened 5 years ago
Closed 5 years ago
#31159 closed Bug (invalid)
There seems to be a problem with latest version of django as it does not identify djongo as valid database connector for mongodb.
Reported by: | Sutariya Aman | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 3.0 |
Severity: | Normal | Keywords: | Migration, Djongo, Database, Backend, Valid |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Lately i have been trying to connect my django app with MongoDb by using Djongo as a connector engine but everytime i try to connect them it shows up with an error "djongo isnt an available database backend" . I tried finding the source of the problem and noticed that django only recognizes the databases that are stored in the db/backends directory of the django app and when we pip install djongo it apparently stores it in the site-packages folder of the django app which is external to the backends directory . So to recognize djongo as a valib database backend we need to install it in appropriate directory . I have answered these query on github and here's the link for the answer "https://github.com/nesdis/djongo/issues/171#issuecomment-571087529".
Djongo is probably not yet compatible with Django 3.0, looking at
django>=2.0,<3
in setup.py.