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

Errors when adding plugins on django 1.10 #5812

Closed
hbutau opened this issue Dec 19, 2016 · 7 comments
Closed

Errors when adding plugins on django 1.10 #5812

hbutau opened this issue Dec 19, 2016 · 7 comments

Comments

@hbutau
Copy link

hbutau commented Dec 19, 2016

I have been trying to use django-cms 3.4 with Django 1.10, but it seems to always throw this 'RequestContext' object has no attribute 'current_app' error everytime i try to add a plugin. I have since reverted to Django 1.9 and it seems to work, but not with django 1.10

Traceback (most recent call last): File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/core/handlers/exception.py", line 39, in inner response = get_response(request) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response response = self._get_response(request) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/core/handlers/base.py", line 217, in _get_response response = self.process_exception_by_middleware(e, request) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/core/handlers/base.py", line 215, in _get_response response = response.render() File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/response.py", line 109, in render self.content = self.rendered_content File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/response.py", line 86, in rendered_content content = template.render(context, self._request) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/backends/django.py", line 66, in render return self.template.render(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/base.py", line 208, in render return self._render(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/base.py", line 199, in _render return self.nodelist.render(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/base.py", line 994, in render bit = node.render_annotated(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/loader_tags.py", line 174, in render return compiled_parent._render(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/base.py", line 199, in _render return self.nodelist.render(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/base.py", line 994, in render bit = node.render_annotated(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/classytags/core.py", line 153, in render return self.render_tag(context, **kwargs) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/sekizai/templatetags/sekizai_tags.py", line 93, in render_tag rendered_contents = nodelist.render(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/base.py", line 994, in render bit = node.render_annotated(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/classytags/core.py", line 153, in render return self.render_tag(context, **kwargs) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/cms/templatetags/cms_tags.py", line 631, in render_tag rendered_contents = nodelist.render(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/base.py", line 994, in render bit = node.render_annotated(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/classytags/core.py", line 153, in render return self.render_tag(context, **kwargs) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/cms/templatetags/cms_tags.py", line 304, in render_tag content = get_placeholder_content(context, request, page, name, inherit, nodelist) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/cms/templatetags/cms_tags.py", line 236, in get_placeholder_content content = render_placeholder(placeholder, context, name) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/cms/plugin_rendering.py", line 188, in render_placeholder content.extend(render_plugins(plugins, context, placeholder, processors)) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/cms/plugin_rendering.py", line 101, in render_plugins out.append(plugin.render_plugin(context, placeholder, processors=processors)) File "/home/hamub/.virtualenvs/tesk/lib/python3.5/site-packages/cms/models/pluginmodel.py", line 173, in render_plugin current_app = context.current_app if context else None AttributeError: 'RequestContext' object has no attribute 'current_app'

@czpython
Copy link
Contributor

Hello @hbutau,
Please update the ticket with the following information:

  • django CMS version
  • the full traceback of the error

@hbutau
Copy link
Author

hbutau commented Dec 19, 2016

ok just updated with the traceback

@czpython
Copy link
Contributor

Thanks @hbutau.
Does it throw this error for all plugins? or a specific one?

@hbutau
Copy link
Author

hbutau commented Dec 20, 2016 via email

@czpython
Copy link
Contributor

Hello @hbutau,
Is this a new project or an upgraded one?
Can you provide us with a dump of pip freeze?

@czpython
Copy link
Contributor

Closing as latest 3.4.x version fully supports django 1.10, feel free to create a new ticket if you're still experiencing issues.

@hbutau
Copy link
Author

hbutau commented Feb 20, 2017

Its okay @czpython, i have tested it we the latest and it seems to be fine. Thank you

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

No branches or pull requests

2 participants