aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2021-01-04 16:58:41 -0800
committerGravatar GitHub <[email protected]>2021-01-04 16:58:41 -0800
commit57f389d396ea96b563206935a1d73837b98895ed (patch)
tree0af0ff9e4063c1c1749639debb1b338723fdcff9 /pydis_site
parentMerge pull request #441 from python-discord/precommit-pycharm (diff)
Use wildcard for ALLOWED_HOSTS in debug mode
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/settings.py16
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: