Hi guys
我查询了很多的资料,发现Django无法很好的连接MongoDB(该数据库在其他的服务器中),我需要解决如下问题:

1、在settings.py文件中设置连接MongoDB,需要密码
2、在models.py文件中建立模型
3、在views.py中进行数据的读写操作

我尝试了在python中进行连接,但是我不知道如何在Django中进行连接MongoDB,以下是我的环境配置信息:

python==3.9.0
django==4.0.6
pymongo==4.1.1
mongoengine==0.24.1

DATABASE
[image: 0220720104558.png]

如果您帮我,我将对您万分感谢。

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/36c0e6d2-93aa-4a10-86ba-1de35a9b5e43n%40googlegroups.com.

Reply via email to