0

I am using djongo library to handle mongodb, but still getting database error while filtering queryset using a boolean field.

Error: No exception message supplied, django.db.utils.DatabaseError

from django.contrib.auth import get_user_model
User = get_user_model()
users = User.objects.filter(isVerified=True)

1 Answers1

0

first of all django is a backend framework not mongodb libraray secound of all you are using django orm which doesn't support noSQL databases right now django orm support only relational dbms for handle mongodb PyMongo is a good library

  • I mentioned "djongo" not "django" actually. As django doesn’t support noSQL officially, that's why "djongo" is there to handle noSQL. djongo = django+mongo – satta sunder talukder Jan 07 '22 at 03:51
  • oh my bad, but i still recommend pymongo over djongo because django orm structure which djongo is using is not good for non relational databases i tried it with elasticsearch and i want't satisfied – amirbahador Jan 07 '22 at 12:14