Django-CMS插件没有出现 [英] Django-CMS plugin not appearing

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

问题描述

我正在部署一个Django网站。我在电脑上工作的所有自定义插件(我可以将它们从下拉列表中添加到模板块中),但是当我将代码推送到网站时,并不是所有的插件都可用。



创建数据库表,如果我导入 plugin_pool 并调用 discover_plugins()然后 get_all_plugins()插件全部显示。所以我的问题是,为什么我的插件不显示?任何想法?

解决方案

您的应用程式是否带有插件( cms_plugins.py code $ INSTALLED_APPS ?



它有一个 models.py (可能是空的)文件?



使用时可以导入 cms_plugins.py python manage.py shell



最常见的问题是cms_plugins.py文件中的导入错误


I'm deploying a Django website. All the custom plugins I have work on my computer (I can add them into a template block from the drop down.) but when I push the code out to the site, not all the plugins are available.

The database tables are created, and if I import plugin_pool and call discover_plugins() and then get_all_plugins() the plugins all show up. So my question is, why aren't my plugins showing? Any ideas?

解决方案

Is your app with the plugin (cms_plugins.py file) in INSTALLED_APPS?

Does it have a models.py (which could be empty) file?

Can you import the cms_plugins.py file when using python manage.py shell?

The most common problem are import errors in the cms_plugins.py file

这篇关于Django-CMS插件没有出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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