django-blog-zinnia / cmsplugin-zinnia

Bridge between django-blog-zinnia and django-cms
BSD 3-Clause "New" or "Revised" License
53 stars 46 forks source link

ImportError: cannot import name render_placeholder #63

Open sailorsamoor opened 7 years ago

sailorsamoor commented 7 years ago

Hello. I'm getting such error. Django 1.9.9, Django-CMS 3.4.0, Zinnia 0.18.

File "/usr/home/jeltoesolnce/.virtualenvs/cms3/lib/python2.7/site-packages/cmsplugin_zinnia/admin.py", line 6, in <module> from cms.plugin_rendering import render_placeholder ImportError: cannot import name render_placeholder

sailorsamoor commented 7 years ago

It's there as I understood.. http://docs.django-cms.org/en/develop//upgrade/3.4.html#manual-plugin-rendering

bittner commented 7 years ago

def render_placeholder is now a member of class ContentRenderer, not a function of the module anymore. Hence, the import fails. This change has been introduced with django-cms commit 617c2c4 (08 Aug 2016).

cms/cms_plugins.py may give a clue in addition how the rendering should now take place.

bittner commented 7 years ago

This issue is a duplicate of #62.

3rand commented 2 years ago

If using older Django this might help:

67