We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12248e7 commit 6fae2a9Copy full SHA for 6fae2a9
docs/installation.rst
@@ -103,6 +103,17 @@ You can change the logic of determining whether or not the Debug Toolbar
103
should be shown with the :ref:`SHOW_TOOLBAR_CALLBACK <SHOW_TOOLBAR_CALLBACK>`
104
option. This option allows you to specify a custom function for this purpose.
105
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
117
Troubleshooting
118
---------------
119
0 commit comments