diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 3ab939c27..64a901d12 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -112,6 +112,7 @@ Listed in alphabetical order. Diane Chen `@purplediane`_ @purplediane88 Dónal Adams `@epileptic-fish`_ Dong Huynh `@trungdong`_ + Duda Nogueira `@dudanogueira`_ @dudanogueira Emanuel Calso `@bloodpet`_ @bloodpet Eraldo Energy `@eraldo`_ Eric Groom `@ericgroom`_ @@ -283,6 +284,7 @@ Listed in alphabetical order. .. _@dezoito: https://github.com/dezoito .. _@dhepper: https://github.com/dhepper .. _@dot2dotseurat: https://github.com/dot2dotseurat +.. _@dudanogueira: https://github.com/dudanogueira .. _@dsclementsen: https://github.com/dsclementsen .. _@guilherme1guy: https://github.com/guilherme1guy .. _@durkode: https://github.com/durkode diff --git a/{{cookiecutter.project_slug}}/config/settings/local.py b/{{cookiecutter.project_slug}}/config/settings/local.py index 015d8aff8..21e6a8dfc 100644 --- a/{{cookiecutter.project_slug}}/config/settings/local.py +++ b/{{cookiecutter.project_slug}}/config/settings/local.py @@ -68,7 +68,7 @@ if env("USE_DOCKER") == "yes": import socket hostname, _, ips = socket.gethostbyname_ex(socket.gethostname()) - INTERNAL_IPS += [ip[:-1] + "1" for ip in ips] + INTERNAL_IPS += [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips] {%- endif %} # django-extensions