diff options
author | Andrew Godwin | 2022-12-05 19:21:00 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-05 19:24:46 -0700 |
commit | a31f676b46a4d904954b8b7227dcde779aedca54 (patch) | |
tree | d00fa3e022ff08f154f431777ba37e2f43127fd6 /takahe | |
parent | da9a3d853eda1173ac8913908d512fb9babbd136 (diff) | |
download | takahe-a31f676b46a4d904954b8b7227dcde779aedca54.tar.gz takahe-a31f676b46a4d904954b8b7227dcde779aedca54.tar.bz2 takahe-a31f676b46a4d904954b8b7227dcde779aedca54.zip |
Policy pages and signup tests.
Fixes #113
Diffstat (limited to 'takahe')
-rw-r--r-- | takahe/urls.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/takahe/urls.py b/takahe/urls.py index a6e8a6e..66f176d 100644 --- a/takahe/urls.py +++ b/takahe/urls.py @@ -61,6 +61,11 @@ urlpatterns = [ name="admin_tuning", ), path( + "admin/policies/", + admin.PoliciesSettings.as_view(), + name="admin_policies", + ), + path( "admin/domains/", admin.Domains.as_view(), name="admin_domains", @@ -150,6 +155,27 @@ urlpatterns = [ path("@<handle>/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()), |