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

NotImplementedError: Database objects do not implement truth value testing or bool(). Please compare with None instead: database is not None #673

Open
marvellous10 opened this issue Jul 3, 2023 · 2 comments

Comments

@marvellous10
Copy link

NotImplementedError: Database objects do not implement truth value testing or bool(). Please compare with None instead: database is not None. This is when i use the pymongo latest version (4.4.0), downgrading to 3.12.3 works fine but it doesn't support NULL and CONSTRAINT completely.

Traceback

raise NotImplementedError(
NotImplementedError: Database objects do not implement truth value testing or bool(). Please compare with None instead: database is not None

@nubonics
Copy link

this is because the djongo package itself only supports django 3

When using mongodb, you lose ORM functionality with django, so admin panel no longer is usable, and automatic migrations are no longer able to be used, in short, dont use mongodb with django :(

@marvellous10
Copy link
Author

So what can i use, i need what mongodb offers, i later downgraded but it's giving issues but I'm working around that

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

2 participants