Django-CMS插件没有出现 [英] Django-CMS plugin not appearing
问题描述
创建数据库表,如果我导入 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屋!