-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
'djdt' is not a registered namespace #1405 #1889
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test with make test doesn't work, you need to change the setting on test to change accept test of the debug toolbar
DEBUG_TOOLBAR_CONFIG = {
# Django's test client sets wsgi.multiprocess to True inappropriately
"RENDER_PANELS": False,
"RUNNING_TESTS": False
}
@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 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 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 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? |
Let me check out the changes. I think that would work to pointing to the example app |
I have incorporated the changes requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is coming along nicely Velda. I've got a few suggested changes. Hopefully it doesn't break any of the tests.
I have removed the patch decorator, updated the docs and made some changes to the test_panel_empty check for the test to pass |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for sticking with this one @VeldaKiara!
@matthiask @elineda @living180 could one of you give this a look over to confirm it makes sense to you? Specifically the naming and documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
I mostly have suggestions and questions for clarifications, so I'm approving already.
@@ -236,8 +239,43 @@ def test_check_w007_invalid(self, mocked_guess_type): | |||
], | |||
) | |||
|
|||
def test_debug_toolbar_installed_when_running_tests(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why you're modifying the dt_settings.get_config()
return value instead of using e.g. with override_settings(...)
? I suspect that there's a good reason for it; if there is, please add a short docstring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we were to use override_settings
, we'd have to define the entire DEBUG_TOOLBAR_CONFIG
dictionary. And I don't think there's a merge settings method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know what you think of the new comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! No further comments :-)
I think this is ready to merge, or is there anything left to do? |
👯🏾👯🏾👯🏾👯🏾 |
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)
Checklist:
docs/changes.rst
.