"'MongoClient' object is not iterable" in Django Rest Framework

38 views
Skip to first unread message

Gautam Ajani

unread,
May 21, 2019, 6:42:55 AM5/21/19
to Django REST framework
Hello Guys, 

I am trying to learn DRF and so that I have started one sample project in Django Rest. 
And For that project, I want to use MongoDB in DRF so I have setup mongoengine in it.
But I have been facing this following error when I try to run it.  

raise TypeError("'MongoClient' object is not iterable")
TypeError: 'MongoClient' object is not iterable

I have tried so many solutions from the internet but I have not found any useful solution.
If anyone has any idea then please help.

Thanks in Advance.
serializers.py
models.py
settings.py
Reply all
Reply to author
Forward
0 new messages