djongo icon indicating copy to clipboard operation
djongo copied to clipboard

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

Open marvellous10 opened this issue 2 years ago • 2 comments

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

marvellous10 avatar Jul 03 '23 08:07 marvellous10

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 :(

nubonics avatar Jul 16 '23 21:07 nubonics

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

marvellous10 avatar Aug 13 '23 12:08 marvellous10