Django-CMS警告在django-mptt [英] Django-CMS warning on django-mptt

查看:152
本文介绍了Django-CMS警告在django-mptt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Django-CMS 2.4.1项目,总是给我警告:

  DeprecationWarning:隐式管理器CMSPlugin。树将在django-mptt中删除0.6。在模型上明确定义一个TreeManager()以消除此警告。 

这只发生在生产中 - 不在dev中。



尝试:

  ./ manage.py cms fix-mptt 

其中给出了输出(在与上述相同的警告之后):

 修复mptt页面树
修复mptt插件树
全部完成

但是...这不能解决问题,例如如果我重复命令,它会再次做同样的事情,同样的警告。



警告似乎没有造成任何伤害,但我想象会与下一个版本的django-mptt。任何人都可以给我任何建议?



谢谢

解决方案

在任何情况下都安全地忽略该警告。



只是告诉你django CMS使用Django MPTT是依靠将来版本中删除的内容。 >

I have a Django-CMS 2.4.1 project that always gives me the warning:

DeprecationWarning: Implicit manager CMSPlugin.tree will be removed in django-mptt 0.6.  Explicitly define a TreeManager() on your model to remove this warning.

This only occurs in production - not in dev.

I tried:

./manage.py cms fix-mptt

which gives me the output (after the same warning as above):

fixing mptt page tree
fixing mptt plugin tree
all done

But... this does not solve the problem, e.g. if I repeat the command it does the same thing again, with the same warning.

The warning doesn't seem to be doing any harm yet, but I imagine it will with the next version of django-mptt. Can anyone give me any advice?

thanks

解决方案

You can safely ignore that warning in any case.

It's just telling you that django CMS's use of Django MPTT is relying on something that will be removed in a future version.

这篇关于Django-CMS警告在django-mptt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆