diff options
author | 2021-01-04 16:58:41 -0800 | |
---|---|---|
committer | 2021-01-04 16:58:41 -0800 | |
commit | 57f389d396ea96b563206935a1d73837b98895ed (patch) | |
tree | 0af0ff9e4063c1c1749639debb1b338723fdcff9 | |
parent | Merge pull request #441 from python-discord/precommit-pycharm (diff) |
Use wildcard for ALLOWED_HOSTS in debug mode
-rw-r--r-- | pydis_site/settings.py | 16 |
1 files changed, 1 insertions, 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: |