diff --git a/docs/installation.rst b/docs/installation.rst index 4eff7fc89..01061fb11 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -98,6 +98,17 @@ You can change the logic of determining whether or not the Debug Toolbar should be shown with the :ref:`SHOW_TOOLBAR_CALLBACK ` option. This option allows you to specify a custom function for this purpose. +.. warning:: + + If using Docker the following will set your `INTERNAL_IPS` correctly only if you are in Debug mode.:: + + if DEBUG: + import os # only if you haven't already imported this + import socket # only if you haven't already imported this + hostname, _, ips = socker.gethostbyname_ex(socket.gethostname()) + INTERNAL_IPS = [ip[:-1] + '1' for ip in ips] + ['127.0.0.1', '10.0.2.2'] + + Troubleshooting ---------------