aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/hosts.py
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/hosts.py')
-rw-r--r--pydis_site/hosts.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pydis_site/hosts.py b/pydis_site/hosts.py
new file mode 100644
index 00000000..34acfd09
--- /dev/null
+++ b/pydis_site/hosts.py
@@ -0,0 +1,10 @@
+from django.conf import settings
+from django_hosts import host, patterns
+
+host_patterns = patterns(
+ '',
+ # host(r"subdomain pattern", "URLs module", "host entry name")
+ host(r'admin', 'pydis_site.apps.admin.urls', name="admin"),
+ host(r'api', 'pydis_site.apps.api.urls', name='api'),
+ host(r'.*', 'pydis_site.apps.home.urls', name=settings.DEFAULT_HOST)
+)