dataportal#
Live data portal serving continuously-updated Cape Town datasets. The portal aggregates data from multiple sources (R2 cloud storage with local JSON fallback) and presents it through dedicated pages.
Models#
No Django models — data is served from JSON files fetched by management commands.
URL Routes#
Path |
View |
Description |
|---|---|---|
|
|
Landing page with all data products and last-updated timestamps |
|
|
Cape Town dam levels with trends + Leaflet map |
|
|
Table Mountain cableway status |
|
|
V&A Waterfront ↔ Airport commute times |
Management Commands#
Command |
Description |
|---|---|
|
Scrape dam level data from R2 / local fallback |
|
Fetch Table Mountain cableway operating status |
|
Fetch traffic commute data from R2 / local fallback |
Data Sources#
Key Design Decisions#
No ORM models — data is ephemeral and read from JSON. This avoids unnecessary database writes for fast-changing metrics.
R2-first with local fallback: Management commands try R2 first; if unavailable they fall back to
data/*.jsonfiles in the repo.Table Mountain pipeline is currently disabled pending upstream API changes.