We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 782d35a commit 956520eCopy full SHA for 956520e
config/settings/_base.py
@@ -37,8 +37,9 @@
37
# Get the IP to use for Django Debug Toolbar when developing with docker
38
if env.bool("USE_DOCKER", default=False) is True:
39
ip = socket.gethostbyname(socket.gethostname())
40
- if ip is not None:
41
- INTERNAL_IPS += [ip[:-1] + "1"]
+ if INTERNAL_IPS is None: # Ensure INTERNAL_IPS is a list
+ INTERNAL_IPS = []
42
+ INTERNAL_IPS += [ip[:-1] + "1"]
43
44
# Application definition
45
0 commit comments