diff options
author | 2018-09-08 00:05:43 +0200 | |
---|---|---|
committer | 2018-09-08 00:06:09 +0200 | |
commit | 6aca3c625702dbca98e945806a02636868c25ec8 (patch) | |
tree | fbafe1a159a1a7a8b023dd3702bc475f821dce3d /pysite/hosts.py | |
parent | Allow configuring allowed hosts with env var. (diff) |
Add the `admin` subdomain with the Django Admin.
Diffstat (limited to 'pysite/hosts.py')
-rw-r--r-- | pysite/hosts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pysite/hosts.py b/pysite/hosts.py index 67fc2451..3cf41e7f 100644 --- a/pysite/hosts.py +++ b/pysite/hosts.py @@ -4,8 +4,8 @@ from django_hosts import host, patterns host_patterns = patterns( '', # > | Subdomain | URL Module | Host entry name | - # host(r"admin", "admin", name="admin"), - host(r'api', 'api.urls', name='api'), + host(r'admin', 'admin.urls', name="admin"), + host(r'api', 'api.urls', name='api'), # host(r"staff", "staff", name="staff"), # host(r"wiki", "wiki", name="wiki"), # host(r"ws", "ws", name="ws"), |