diff options
author | 2021-10-06 00:55:35 +0100 | |
---|---|---|
committer | 2021-10-06 00:55:35 +0100 | |
commit | 1f334f2eb569a1ce37b1181df97213026ef6816f (patch) | |
tree | 400cb51696d021ff94241588dda772a53b339f77 /pydis_site | |
parent | Add www.pythondiscord.com to ALLOWED_HOSTS (#601) (diff) | |
parent | Update hosts.py to default to www (diff) |
Merge pull request #602 from python-discord/jb3/yes-to-www-take-two
Update hosts.py to default to www
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/hosts.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pydis_site/hosts.py b/pydis_site/hosts.py index 5a837a8b..719e93cf 100644 --- a/pydis_site/hosts.py +++ b/pydis_site/hosts.py @@ -9,5 +9,6 @@ host_patterns = patterns( # Internal API ingress (cluster local) host(r'pydis-api', 'pydis_site.apps.api.urls', name='internal_api'), host(r'staff', 'pydis_site.apps.staff.urls', name='staff'), - host(r'.*', 'pydis_site.apps.home.urls', name=settings.DEFAULT_HOST) + host(r'www', 'pydis_site.apps.home.urls', name=settings.DEFAULT_HOST), + host(r'.*', 'pydis_site.apps.home.urls', name="fallback") ) |