diff options
author | 2019-04-07 19:39:52 +0200 | |
---|---|---|
committer | 2019-04-07 19:39:52 +0200 | |
commit | 7e9133d1ac2b4cb82a9ee0dead37f342933ce8d4 (patch) | |
tree | 787f45a1ba5e1f16b9cd7d9e8cdf660573914151 /pydis_site/hosts.py | |
parent | Set `harakiri = 30`. (diff) | |
parent | Address review by @jchristgit (diff) |
Merge pull request #198 from gdude2002/django+176/project-layout
[Fixes #158, #160, #176, #193] Project layout changes
Diffstat (limited to 'pydis_site/hosts.py')
-rw-r--r-- | pydis_site/hosts.py | 10 |
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) +) |