feat: rebuild site content management

Replace legacy FAQ, downloads, and release flows with project and blog publishing. Add configurable branding and theme fields plus clean-start Compose seeding support.
This commit is contained in:
mohamad
2026-09-24 02:32:27 +03:30
parent 4fc4282f0f
commit 588d95f889
43 changed files with 703 additions and 1193 deletions
+13
View File
@@ -59,3 +59,16 @@ class SiteBrandingTemplateTests(TestCase):
self.assertContains(response, "images/com2care-mark.svg")
self.assertContains(response, "images/com2care-care-team.jpg")
def test_site_identity_and_theme_are_admin_configurable(self):
branding = SiteBranding.load()
branding.site_name = "Care Research Network"
branding.short_name = "CRN"
branding.primary_color = "#123456"
branding.save()
response = self.client.get(reverse("pages:home"))
self.assertContains(response, "Care Research Network")
self.assertContains(response, ">CRN</span>")
self.assertContains(response, "--accent-blue:#123456")