From a31f676b46a4d904954b8b7227dcde779aedca54 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 5 Dec 2022 19:21:00 -0700 Subject: Policy pages and signup tests. Fixes #113 --- takahe/urls.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'takahe') diff --git a/takahe/urls.py b/takahe/urls.py index a6e8a6e..66f176d 100644 --- a/takahe/urls.py +++ b/takahe/urls.py @@ -60,6 +60,11 @@ urlpatterns = [ admin.TuningSettings.as_view(), name="admin_tuning", ), + path( + "admin/policies/", + admin.PoliciesSettings.as_view(), + name="admin_policies", + ), path( "admin/domains/", admin.Domains.as_view(), @@ -150,6 +155,27 @@ urlpatterns = [ path("@/activate/", identity.ActivateIdentity.as_view()), path("identity/select/", identity.SelectIdentity.as_view()), path("identity/create/", identity.CreateIdentity.as_view()), + # Flat pages + path( + "about/", + core.FlatPage.as_view(title="About This Server", config_option="site_about"), + name="about", + ), + path( + "pages/privacy/", + core.FlatPage.as_view(title="Privacy Policy", config_option="policy_privacy"), + name="privacy", + ), + path( + "pages/terms/", + core.FlatPage.as_view(title="Terms of Service", config_option="policy_terms"), + name="terms", + ), + path( + "pages/rules/", + core.FlatPage.as_view(title="Server Rules", config_option="policy_rules"), + name="rules", + ), # Well-known endpoints and system actor path(".well-known/webfinger", activitypub.Webfinger.as_view()), path(".well-known/host-meta", activitypub.HostMeta.as_view()), -- cgit v1.2.3