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

Show debug toolbar always #406

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Show debug toolbar always #406

merged 2 commits into from
Aug 10, 2023

Conversation

injoonH
Copy link
Member

@injoonH injoonH commented Aug 9, 2023

As using DX container for development, it is unavailable to set INTERNAL_IPS properly. Therefore, set the configuration manually:

DEBUG_TOOLBAR_CONFIG = {
    "SHOW_TOOLBAR_CALLBACK": lambda _: True,
}

@injoonH injoonH added the bug Something isn't working label Aug 9, 2023
@injoonH injoonH self-assigned this Aug 9, 2023
@injoonH injoonH linked an issue Aug 9, 2023 that may be closed by this pull request
@injoonH
Copy link
Member Author

injoonH commented Aug 10, 2023

Hide debug toolbar when testing:

ara/settings/test.py

DEBUG_TOOLBAR_CONFIG = {
    "SHOW_TOOLBAR_CALLBACK": lambda _: False,
}

@injoonH injoonH merged commit de281cb into master Aug 10, 2023
1 check passed
@injoonH injoonH deleted the fix/debug-toolbar branch August 10, 2023 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restore Django Debug Toolbar
1 participant