How ecotrust/wcoa works
Main Components
a) Frontend Layer:
• Wagtail CMS interface
• Public-facing web portal
• Static assets (CSS, JS, images)
• Template system (Django templates)
b) Backend Layer:
• Django application (wcoa)
• Wagtail CMS core
• Database models and migrations
• Authentication system
c) Infrastructure Layer:
• Nginx web server
• uWSGI application server
• PostgreSQL database with PostGIS extension
• Redis cache
• Static/Media file storage
• SSL/TLS (Certbot)
[Client Layer]
• ↓ HTTPS
[Load Balancer/Reverse Proxy]
• ↓
[Application Layer]
• ↓
[Data Layer]
Component Relationships
• Client browsers → Nginx (HTTPS/443)
• Nginx → uWSGI (Unix socket)
• uWSGI → Django application
• Django → PostgreSQL/PostGIS
• Django → Redis cache
• Django → File system (media/static)
Specific Implementation Details
Key architectural elements:
[Browser] → HTTPS → [Nginx + SSL]
• ↓
[Static Files] ← [Django + Wagtail CMS] → [uWSGI]
• ↓
• [PostgreSQL + PostGIS]
• ↓
• [Redis Cache]
Additional Notes
• Separation between development and production environments
• Backup systems and monitoring (Munin)
• Unattended upgrade paths
• Content management workflow through Wagtail