The Northern Times is a fully structured digital newsroom platform designed to deliver credible journalism from Northern Uganda and beyond.
# THE NORTHERN TIMES
**Django-powered digital newsroom platform for Northern Uganda and East Africa.**
**Version:** 2.0 (Django) | **Stack:** Django 5.1 / PostgreSQL + pgvector / Redis / Celery / Nginx / Docker
**Codebase:** 210 Python files, 81 templates, 43 static assets | **Status:** Production-ready
---
## Overview
The Northern Times is a full-featured news platform with automated content aggregation, AI-powered enrichment, and a custom editorial admin panel. It crawls 60+ news sources, classifies articles by category using ML, rewrites content via OpenAI, and serves a responsive frontend for readers.
### Key Capabilities
- **Automated News Crawler** -- 60+ RSS and Selenium-scraped sources across Uganda, East Africa, and international outlets
- **AI Content Pipeline** -- Category classification (DeBERTa), sentiment analysis, NER, summarization, embeddings, quality scoring, keyword extraction, quote extraction
- **4-Layer Deduplication** -- URL hash, exact title, Jaccard fuzzy title (0.55), pgvector semantic similarity (0.82)
- **OpenAI Rewriter** -- GPT-4o-mini rewrites with auto-enrich mode for short/low-quality articles
- **CKEditor 5 Editor** -- 35-plugin rich text editor on articles, policies, and popups
- **Custom Admin Panel** -- Dark/light theme, system-style modals, profile dropdown, CKEditor everywhere
- **Security Hardened** -- Open redirect protection, XML escaping, CSRF enforcement, postMessage origin checks, safe DOM construction, authenticated API endpoints
- **Newsletter System** -- Compose, schedule, queue, SMTP delivery with Postfix + DKIM
- **SEO Audit Engine** -- 26-point site audit with 0-100 scoring (async via Celery)
- **Social Monitor** -- Track brand mentions across Google News, Reddit, Bing, Hacker News
- **Popup/Banner System** -- 5 types, A/B testing, live preview, device targeting
- **Analytics** -- Visitor tracking (GeoIP, UA parsing), article views, daily aggregation, device/geo breakdown, CSV export
- **PWA** -- Service work …