We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fe6aed commit a2bda47Copy full SHA for a2bda47
docs/installation.rst
@@ -102,3 +102,15 @@ settings module::
102
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
0 commit comments