aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/hosts.py
blob: bb261dee13b71e7f5d71c2b071598a6be79cfb71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from django.conf import settings
from django_hosts import host, patterns

host_patterns = patterns(
    "pysite.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)
)