Update {{cookiecutter.project_slug}}/config/settings/local.py

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
This commit is contained in:
lcd1232 2020-10-04 19:31:09 +03:00 committed by GitHub
parent 06a1aa1309
commit f5bfa97f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,8 +69,10 @@ if env("USE_DOCKER") == "yes":
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname()) hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
INTERNAL_IPS += [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips] INTERNAL_IPS += [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips]
{%- if cookiecutter.js_task_runner == 'Gulp' %}
_, _, ips = socket.gethostbyname_ex("node") _, _, ips = socket.gethostbyname_ex("node")
INTERNAL_IPS.extend(ips) INTERNAL_IPS.extend(ips)
{%- endif %}
{%- endif %} {%- endif %}
# django-extensions # django-extensions