From 57f389d396ea96b563206935a1d73837b98895ed Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 4 Jan 2021 16:58:41 -0800 Subject: Use wildcard for ALLOWED_HOSTS in debug mode --- pydis_site/settings.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/pydis_site/settings.py b/pydis_site/settings.py index 9b840406..50caab80 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -47,21 +47,7 @@ DEBUG = env('DEBUG') # SECURITY WARNING: keep the secret key used in production secret! if DEBUG: - ALLOWED_HOSTS = env.list( - 'ALLOWED_HOSTS', - default=[ - 'pythondiscord.local', - 'api.pythondiscord.local', - 'admin.pythondiscord.local', - 'staff.pythondiscord.local', - '0.0.0.0', # noqa: S104 - 'localhost', - 'web', - 'api.web', - 'admin.web', - 'staff.web' - ] - ) + ALLOWED_HOSTS = env.list('ALLOWED_HOSTS', default=['*']) SECRET_KEY = "yellow polkadot bikini" # noqa: S105 elif 'CI' in os.environ: -- cgit v1.2.3