djongo can only connect to mongoDB once

86 views
Skip to first unread message

Selvaria

unread,
Apr 27, 2022, 2:56:18 AM4/27/22
to djongo
I 'm new in djongo, I found that I can only connect to mongodb once each time I run the django runserver command. 

for example, I create a view that show all records, i will work the first time ,when I refresh or jump to another url , it will crash, the error message shows message that "cannot use mongoclient after close" that cause an ambigous error "django.db.utils.DatabseError"

The detailed message and description can view the link below:
Reply all
Reply to author
Forward
0 new messages