How tahmidulkhan24/batialert works
BatiAlert is a Django web app for outage planning in Bangladesh. Users view area-specific schedules and notices, save areas and appliance/battery setups, then use the calculator to assess backup runtime and appliance recommendations. Staff manage schedules, notices, and feedback; a management command sends scheduled email alerts. The graph reflects the documented planner capabilities, but calculator internals and several routes are only partially excerpted, so uncertain implementation links are omitted. The SQLite-backed Django models provide the app’s persistent domain state.
Main entry points: core/models.py Schedule and notice data · urls.py Application routes · views.py User dashboard · users/models.py Profiles and saved plans
Components 16
Outage planning
- Application routes
core/urls.py - Area schedules
core/views.py - Outage notices
core/views.py - Backup calculator
core/views.py
User accounts
- User dashboard
users/views.py - Account access
users/views.py - Saved areas
users/views.py - Saved appliance setup
users/views.py
Operations
- Staff management
core/views.py - Feedback reports
core/views.py - Outage email alerts
core/management/commands/send_outage_notifications.py
Domain data
- Schedule and notice data
core/models.py - Profiles and saved plans
users/models.py
Other components
- Web user
- Staff user
- Email service
Connections 24
- Web user → Application routes: requests pages
core/urls.py - Application routes → Area schedules: routes schedule
core/urls.py - Application routes → Outage notices: routes notices
core/urls.py - Application routes → Backup calculator: routes calculator
core/urls.py - Application routes → Staff management: routes management
core/urls.py - Area schedules → Schedule and notice data: queries schedules
core/views.py - Outage notices → Schedule and notice data: queries notices
core/views.py - Backup calculator → Schedule and notice data: uses appliance and area data
core/views.py - Web user → Account access: signs up or logs in
- Account access → User dashboard: redirects after login
users/views.py - Web user → User dashboard: opens dashboard
- User dashboard → Schedule and notice data: queries notices and areas
users/views.py - User dashboard → Profiles and saved plans: reads saved areas and setup
users/views.py - Web user → Saved areas: manages saved areas
- Saved areas → Profiles and saved plans: writes saved areas
users/views.py - Web user → Saved appliance setup: saves appliance setup
- Saved appliance setup → Profiles and saved plans: writes saved setup
users/views.py - Staff user → Staff management: manages schedules and notices
- Staff management → Schedule and notice data: updates schedules and notices
core/views.py - Web user → Feedback reports: submits feedback
- Feedback reports → Schedule and notice data: creates feedback report
core/views.py - Outage email alerts → Profiles and saved plans: reads alert preferences
core/management/commands/send_outage_notifications.py - Outage email alerts → Schedule and notice data: checks schedules and logs sends
core/management/commands/send_outage_notifications.py - Outage email alerts → Email service: sends outage email
core/management/commands/send_outage_notifications.py