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

Unable to use django-debug-toolbar together with django-cms #6731

jonathan-s opened this issue Sep 16, 2019 · 0 comments


Copy link

commented Sep 16, 2019


When opening a cms page to edit the page fails

Expected behaviour

You should be able to open a page and be able to see a working django-debug-toolbar.

Actual behaviour

It fails with the following traceback.

web_1  | Traceback (most recent call last):
web_1  |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/", line 41, in inner
web_1  |     response = get_response(request)
web_1  |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/", line 187, in _get_response
web_1  |     response = self.process_exception_by_middleware(e, request)
web_1  |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/", line 185, in _get_response
web_1  |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
web_1  |   File "/usr/local/lib/python3.6/site-packages/newrelic/hooks/", line 544, in wrapper
web_1  |     return wrapped(*args, **kwargs)
web_1  |   File "/usr/local/lib/python3.6/site-packages/django/utils/", line 149, in _wrapped_view
web_1  |     response = view_func(request, *args, **kwargs)
web_1  |   File "/usr/local/lib/python3.6/site-packages/django/views/decorators/", line 57, in _wrapped_view_func
web_1  |     response = view_func(request, *args, **kwargs)
web_1  |   File "/usr/local/lib/python3.6/site-packages/django/contrib/admin/", line 224, in inner
web_1  |     return view(request, *args, **kwargs)
web_1  |   File "/usr/local/lib/python3.6/site-packages/cms/", line 237, in render_object_edit
web_1  |     toolbar.set_object(content_type_obj)
web_1  | AttributeError: 'EmptyToolbar' object has no attribute 'set_object'


  • Python version: 3.6
  • Django version: 1.11
  • django CMS version: 4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.