django-debug-toolbar icon indicating copy to clipboard operation
django-debug-toolbar copied to clipboard

'djdt' is not a registered namespace #1405

Open VeldaKiara opened this issue 1 year ago β€’ 8 comments

Description

The error was 'djdt' is not a registered namespace. It occurred due to misconfiguration of the toolbar settings as well as the debug settings.

Fixes # (issue 1405)

  • Added a check to result in an official error
  • Added tests for the check
  • Updated the docs with the right way to configure the toolbar to work with debug without an issue

Checklist:

  • [X] I have added the relevant tests for this change.
  • [X] I have added an item to the Pending section of docs/changes.rst.

VeldaKiara avatar Feb 27 '24 23:02 VeldaKiara

@elineda @matthiask @tim-schilling could you test it out and let me know if everything is good and any changes or suggestions you have at this point?

VeldaKiara avatar Feb 29 '24 12:02 VeldaKiara

@elineda @matthiask @tim-schilling could you test it out and let me know if everything is good and any changes or suggestions you have at this point?

Is it okay to merge?

VeldaKiara avatar Feb 29 '24 16:02 VeldaKiara

@VeldaKiara no, we have some miscommunications yet. I started on a change that will better communicate them. I'll try to push that up tonight.

tim-schilling avatar Feb 29 '24 18:02 tim-schilling

@VeldaKiara no, we have some miscommunications yet. I started on a change that will better communicate them. I'll try to push that up tonight.

Awesome, I will be waiting on the changes.

VeldaKiara avatar Feb 29 '24 19:02 VeldaKiara

@VeldaKiara I pushed some changes to the check and the settings in the example app. Let me know what you think.

I suspect we should ignore our new check in the test settings until we test it explicitly. In that case we should use the @override_settings decorator to enable it. That should get the tests to pass.

Regarding the documentation, maybe we keep the docs as they are, then link them to the example app to see how it's setup in an advanced configuration?

tim-schilling avatar Feb 29 '24 22:02 tim-schilling

Let me check out the changes.

I think that would work to pointing to the example app

VeldaKiara avatar Feb 29 '24 22:02 VeldaKiara

I have incorporated the changes requested. Let me know if you have any more suggestions.

VeldaKiara avatar Mar 08 '24 23:03 VeldaKiara

I have removed the patch decorator, updated the docs and made some changes to the test_panel_empty check for the test to pass

VeldaKiara avatar Mar 11 '24 00:03 VeldaKiara

I think this is ready to merge, or is there anything left to do?

matthiask avatar Apr 29 '24 08:04 matthiask

πŸ‘―πŸΎπŸ‘―πŸΎπŸ‘―πŸΎπŸ‘―πŸΎ

VeldaKiara avatar Apr 30 '24 14:04 VeldaKiara