diff options
author | 2021-06-08 00:26:40 +0200 | |
---|---|---|
committer | 2021-06-08 00:29:59 +0200 | |
commit | c998d475440cf4819bad7ebc3ed19f31ce82baf4 (patch) | |
tree | bfdeba9a483ebb7646171c79f5b259c27f3d17dd /pydis_site/hosts.py | |
parent | Fix `content` app tests not running on macOS (#519) (diff) |
Move subdomains to query paths.
In more detail:
- Use Django URL namespaces (e.g. `api:bot:infractions`) instead of
`django_hosts` host argument.
- Update the hosts file setup documentation to remove subdomain entries.
- Update the hosts file setup documentation to mention that the entry of
`pythondiscord.local` is not required and mainly for convenience.
- Rename the `APISubdomainTestCase` to the more fitting
`AuthenticatedAPITestCase`, as authentication is all that is left that the
class is doing.
- Drop dependency to `django_hosts`.
Diffstat (limited to 'pydis_site/hosts.py')
-rw-r--r-- | pydis_site/hosts.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pydis_site/hosts.py b/pydis_site/hosts.py deleted file mode 100644 index 5a837a8b..00000000 --- a/pydis_site/hosts.py +++ /dev/null @@ -1,13 +0,0 @@ -from django.conf import settings -from django_hosts import host, patterns - -host_patterns = patterns( - '', - host(r'admin', 'pydis_site.apps.admin.urls', name="admin"), - # External API ingress (over the net) - host(r'api', 'pydis_site.apps.api.urls', name='api'), - # 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) -) |