We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7af4f4 commit bd5849dCopy full SHA for bd5849d
development_settings.py
@@ -6,7 +6,8 @@
6
# idea via https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#internal-ips
7
import socket
8
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
9
-INTERNAL_IPS = ["127.0.0.1", "10.0.2.2"]
+INTERNAL_IPS = ["127.0.0.1"]
10
+ips += ["10.0.2.2"]
11
for ip in ips:
12
for i in range(0, 20):
13
INTERNAL_IPS += [ip[: ip.rfind(".")] + "." + str(i)]
0 commit comments