aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_django/hosts.py
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_django/hosts.py')
-rw-r--r--pydis_django/hosts.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pydis_django/hosts.py b/pydis_django/hosts.py
new file mode 100644
index 00000000..898902dc
--- /dev/null
+++ b/pydis_django/hosts.py
@@ -0,0 +1,15 @@
+from django.conf import settings
+from django_hosts import host, patterns
+
+host_patterns = patterns(
+ "pydis_django.urls",
+
+ # > | Subdomain | URL Module | Host entry name |
+ host(r"admin", "admin", name="admin"),
+ host(r"api", "api", name="api"),
+ host(r"staff", "staff", name="staff"),
+ host(r"wiki", "wiki", name="wiki"),
+ host(r"ws", "ws", name="ws"),
+
+ host(r".*", "main", name=settings.DEFAULT_HOST)
+)