How danielhassan-dev/apap works
CAPAS is a Django academic-performance analytics system. Staff manage student and admission data, submit entry scores for CGPA and risk predictions, and review prediction history and analytics. CSV import and model retraining provide a second path for updating the data and prediction model. The graph includes the documented dashboard, student, audit-log, model-information, and upload capabilities. Some view and training code was only excerpted, so unverified runtime links are omitted.
Main entry points: views.py Web workflows · models.py Academic records · train_model.py Training pipeline · urls.py Project routing
Components 17
Web application
- Project routing
capas_project/capas_project/urls.py - CAPAS routes
capas_project/core/urls.py - Web workflows
capas_project/core/views.py - Input validation
capas_project/core/forms.py - Admin console
capas_project/core/admin.py
Academic records
- Academic records
capas_project/core/models.py - Relational database
capas_project/capas_project/settings.py
Prediction and training
- Training pipeline
capas_project/ml_pipeline/train_model.py - Historical student data
capas_project/data/historical_students.csv - Model metadata
capas_project/ml_models/capas_lr_v1.0.json
User interface
- Dashboard and analytics
capas_project/templates/core/dashboard.html - Student pages
capas_project/templates/core/students.html - Prediction form and result
capas_project/templates/core/predict.html - Prediction audit log
capas_project/templates/core/prediction_log.html - Model information
capas_project/templates/core/model_info.html - CSV upload
capas_project/templates/core/upload_data.html
Other components
- Staff user
Connections 18
- Staff user → Project routing: uses
- Project routing → CAPAS routes: routes to
- CAPAS routes → Web workflows: dispatches
capas_project/core/urls.py - Web workflows → Input validation: uses
capas_project/core/views.py - Web workflows → Academic records: queries and updates
capas_project/core/views.py - Input validation → Academic records: validates
capas_project/core/forms.py - Admin console → Academic records: manages
capas_project/core/admin.py - Academic records → Relational database: persists
- Web workflows → Dashboard and analytics: renders
- Web workflows → Student pages: renders
- Web workflows → Prediction form and result: renders
- Web workflows → Prediction audit log: renders
- Web workflows → Model information: renders
capas_project/core/views.py - Web workflows → CSV upload: renders
- Training pipeline → Historical student data: trains from
README.md - Training pipeline → Academic records: syncs scores
capas_project/ml_pipeline/train_model.py - Training pipeline → Model metadata: writes metadata
- Web workflows → Model metadata: reads metadata