Skip to content
Advertisement

Why I am getting “Not Implemented Error: Database objects do not implement truth value testing or bool().” while running makemigration cmd in django

I am trying to connect Django with MongoDB using Djongo. I have changed the Database parameter but I am getting this error Not Implemented Error: Database objects do not implement truth value testing or bool(). when I am running makemigration command.

Please can anybody explain why I am getting this error and how to resolve it?

I have include settings.py file, error log and mongodb compass setup image.

settings.py

JavaScript

Error Log

JavaScript

MongoDBCompass MongoDB Local Database Image

Advertisement

Answer

The problem is with the new version of pymongo (4.0 from 29.11.2021) which is not supported by Djongo 1.3.6. You need to install pymongo 3.12.1. I had the same problem 2 hours ago.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement