From af54db6c136138c66cf5ca72419989525a0baa5c Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 7 Aug 2018 15:09:08 +0100 Subject: Initial project layout for django --- pydis_django/hosts.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pydis_django/hosts.py (limited to 'pydis_django/hosts.py') 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) +) -- cgit v1.2.3