General Architecture¶
Base Module (/base/)¶
Core models and database schema
Custom blocks and templates
Form handling and validation
View controllers
Utility functions and mixins
Task management system using Celery
Configuration (/config/):¶
Environment-specific settings
URL routing
API endpoints
Database engine configuration
Static file handling
Internationalization support
Content Structure¶
The system is organized into several key content sections, each implemented as a Django/Wagtail app:
Home (/
pages/home/)Custom home page implementation
Interactive map component (Vue.js integration)
Custom blocks and templates
Localization support
Information Services
Publications (
/pages/publications/)Products (
/pages/products/)Services (
/pages/services/)News (
/pages/news/)Events (
/pages/events/)
Data & Research
Weather (
/pages/weather/)Satellite Imagery (
/pages/satellite_imagery/)City Climate (
/pages/cityclimate/)Stations (
/pages/stations/)Data Request (
/pages/data_request/)
User Interaction
Contact (
/pages/contact/)Feedback (
/pages/feedback/)Email Subscription (
/pages/email_subscription/)Surveys (
/pages/surveys/)
Media & Resources
Media Center (
/pages/mediacenter/)Videos (
/pages/videos/)Web Stories (
/pages/webstories/)
Specialized Features
WDQMS (WIGOS Data Quality Management System) (
/pages/wdqms/)Glossary (
/pages/glossary/)Search (
/pages/search/)
Page Structure¶
Each page type, where fully implemented as a Django/Wagtail app, follows a consistent structure:
Models (
models.py)
Database schema
Content structure
Custom fields and relationships
Views (
views.py)
Page rendering logic
Data processing
Custom view handlers
Templates (
/templates/)
Page layouts
Component templates
Custom blocks
Static Assets (
/static/)
CSS/JS files
Static Images and media
Frontend components
Configuration
URL routing (
urls.py)Wagtail hooks (
wagtail_hooks.py)App configuration (
apps.py)