在django中使用mongoengine时,编写关注的弃用警告

时间:2021-02-23 19:19:50

I'm using mongoengine in a python django project of mine.

我正在我的python django项目中使用mongoengine。

The django version is: 1.5.1

django版本是:1.5.1

mongoengine version is: 0.7.10 (latest version retrieved by pip install)

mongoengine版本是:0.7.10 (pip安装检索的最新版本)

I get the following warning upon insertion of documents to the mongo db:

我在向mongo db插入文件时得到以下警告:

lib/python2.7/site-packages/pymongo/common.py:592: DeprecationWarning: The safe parameter is deprecated. Please use write concern options instead.

How do I fix this warning on the mongoengine version I'm using? The only documentation I can find is for later versions.

我如何在我使用的mongoengine版本中修复这个警告?我能找到的唯一文档是以后的版本。

1 个解决方案

#1


2  

Its just a warning from pymongo and can be ignored.

这只是来自pymongo的警告,可以忽略。

The next version of MongoEngine 0.8 now uses the MongoClient and will be released this week.

MongoEngine 0.8的下一个版本现在使用MongoClient,将于本周发布。

#1


2  

Its just a warning from pymongo and can be ignored.

这只是来自pymongo的警告,可以忽略。

The next version of MongoEngine 0.8 now uses the MongoClient and will be released this week.

MongoEngine 0.8的下一个版本现在使用MongoClient,将于本周发布。