-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add show_toolbar_with_docker function for Docker IP handling #2123
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
base: main
Are you sure you want to change the base?
Conversation
- Introduced a new function, show_toolbar_with_docker, to determine if the toolbar should be displayed when running inside Docker containers. - Updated installation documentation to reference the new function for Docker configurations. - Added a changelog entry for the new functionality.
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 thought I'd already comment on the draft. Thanks for taking this on!
* Add hook to RedirectsPanel for subclass customization | ||
* Added ``show_toolbar_with_docker`` function to check Docker host IP address | ||
when running inside Docker containers. | ||
|
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 first entry seems to be a duplicate of something old?
The second entry is good, but it should go up into the "Pending" section.
@@ -155,7 +155,7 @@ option. | |||
If using Docker, the toolbar will attempt to look up your host name | |||
automatically and treat it as an allowable internal IP. If you're not | |||
able to get the toolbar to work with your docker installation, review | |||
the code in ``debug_toolbar.middleware.show_toolbar``. | |||
the code in ``debug_toolbar.middleware.show_toolbar_with_docker``. |
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.
So, that warning has to be reworked. Something like:
"If using Docker you can use debug_toolbar.middleware.show_toolbar_with_docker
which attempts to automatically look up the Docker gateway IP and treat it as an allowable internal IP so that the toolbar is shown to you."
Hi @blingblin-g |
Description
Fixes #2113
Checklist:
docs/changes.rst
.