From abca9fd57ce51c2f671ab0967d63bcddee8a0a1b Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Fri, 14 Jun 2024 03:33:08 +0000 Subject: [PATCH] Extend ALLOWED_HOSTS to support Gitpod --- greenweb/settings/development.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/greenweb/settings/development.py b/greenweb/settings/development.py index ac30e5d5..7e479a19 100644 --- a/greenweb/settings/development.py +++ b/greenweb/settings/development.py @@ -5,7 +5,10 @@ INTERNAL_IPS = ["127.0.0.1"] hostname, _, ips = socket.gethostbyname_ex(socket.gethostname()) INTERNAL_IPS += [ip[:-1] + "1" for ip in ips] -ALLOWED_HOSTS.extend(["127.0.0.1", "localhost"]) # noqa + +# we add gitpod.io to support their ephemeral dev environments +# add others as we need them +ALLOWED_HOSTS.extend(["127.0.0.1", "localhost", ".gitpod.io"]) # noqa INSTALLED_APPS.append("debug_toolbar") # noqa