aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-08 00:05:43 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-08 00:06:09 +0200
commit6aca3c625702dbca98e945806a02636868c25ec8 (patch)
treefbafe1a159a1a7a8b023dd3702bc475f821dce3d /admin
parentAllow configuring allowed hosts with env var. (diff)
Add the `admin` subdomain with the Django Admin.
Diffstat (limited to 'admin')
-rw-r--r--admin/__init__.py0
-rw-r--r--admin/urls.py9
2 files changed, 9 insertions, 0 deletions
diff --git a/admin/__init__.py b/admin/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/admin/__init__.py
diff --git a/admin/urls.py b/admin/urls.py
new file mode 100644
index 00000000..c0970e5d
--- /dev/null
+++ b/admin/urls.py
@@ -0,0 +1,9 @@
+from django.contrib import admin
+from django.http import HttpResponseRedirect
+from django.urls import path
+from django_hosts import reverse
+
+
+urlpatterns = (
+ path('', admin.site.urls),
+)