File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,17 @@ You can change the logic of determining whether or not the Debug Toolbar
103103should be shown with the :ref: `SHOW_TOOLBAR_CALLBACK <SHOW_TOOLBAR_CALLBACK >`
104104option. This option allows you to specify a custom function for this purpose.
105105
106+ .. warning ::
107+
108+ If using Docker the following will set your `INTERNAL_IPS ` correctly only if you are in Debug mode.::
109+
110+ if DEBUG:
111+ import os # only if you haven't already imported this
112+ import socket # only if you haven't already imported this
113+ hostname, _, ips = socker.gethostbyname_ex(socket.gethostname())
114+ INTERNAL_IPS = [ip[:-1] + '1' for ip in ips] + ['127.0.0.1', '10.0.2.2']
115+
116+
106117Troubleshooting
107118---------------
108119
You can’t perform that action at this time.
0 commit comments