summaryrefslogtreecommitdiffstats
path: root/takahe
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-18 00:09:04 -0700
committerAndrew Godwin2022-11-18 00:09:04 -0700
commit1b44a253316a84f40070264ea8134c86d1223441 (patch)
tree2caa56d54a8e81f14649b826f9f3ef5a7c1326ae /takahe
parentb3072c81ba73a16381366960841b6c294cc1fa6e (diff)
downloadtakahe-1b44a253316a84f40070264ea8134c86d1223441.tar.gz
takahe-1b44a253316a84f40070264ea8134c86d1223441.tar.bz2
takahe-1b44a253316a84f40070264ea8134c86d1223441.zip
Signup and invite tweaks
Diffstat (limited to 'takahe')
-rw-r--r--takahe/settings/base.py1
-rw-r--r--takahe/urls.py19
2 files changed, 13 insertions, 7 deletions
diff --git a/takahe/settings/base.py b/takahe/settings/base.py
index 04a43dd..614bfd2 100644
--- a/takahe/settings/base.py
+++ b/takahe/settings/base.py
@@ -28,6 +28,7 @@ MIDDLEWARE = [
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"django_htmx.middleware.HtmxMiddleware",
+ "core.middleware.ConfigLoadingMiddleware",
"users.middleware.IdentityMiddleware",
]
diff --git a/takahe/urls.py b/takahe/urls.py
index 044599a..8c01d64 100644
--- a/takahe/urls.py
+++ b/takahe/urls.py
@@ -48,37 +48,42 @@ urlpatterns = [
),
path(
"admin/basic/",
- admin.BasicPage.as_view(),
+ admin.BasicSettings.as_view(),
name="admin_basic",
),
path(
"admin/domains/",
- admin.DomainsPage.as_view(),
+ admin.Domains.as_view(),
name="admin_domains",
),
path(
"admin/domains/create/",
- admin.DomainCreatePage.as_view(),
+ admin.DomainCreate.as_view(),
name="admin_domains_create",
),
path(
"admin/domains/<domain>/",
- admin.DomainEditPage.as_view(),
+ admin.DomainEdit.as_view(),
),
path(
"admin/domains/<domain>/delete/",
- admin.DomainDeletePage.as_view(),
+ admin.DomainDelete.as_view(),
),
path(
"admin/users/",
- admin.UsersPage.as_view(),
+ admin.Users.as_view(),
name="admin_users",
),
path(
"admin/identities/",
- admin.IdentitiesPage.as_view(),
+ admin.Identities.as_view(),
name="admin_identities",
),
+ path(
+ "admin/invites/",
+ admin.Invites.as_view(),
+ name="admin_invites",
+ ),
# Identity views
path("@<handle>/", identity.ViewIdentity.as_view()),
path("@<handle>/actor/", activitypub.Actor.as_view()),