Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name render_placeholder #63

Open
sailorsamoor opened this issue Sep 22, 2016 · 4 comments
Open

ImportError: cannot import name render_placeholder #63

sailorsamoor opened this issue Sep 22, 2016 · 4 comments

Comments

@sailorsamoor
Copy link

sailorsamoor commented Sep 22, 2016

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
Copy link
Author

@bittner
Copy link
Contributor

bittner commented Nov 13, 2016

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
Copy link
Contributor

bittner commented Nov 13, 2016

This issue is a duplicate of #62.

@3rand
Copy link

3rand commented Aug 31, 2021

If using older Django this might help:

#67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants