How tyr4/unihack-2025 works
This is a Django public-information portal with pages for transit, bus routes, restaurants, hotels, alerts, weather and complaints, plus a panel route. The visible backend workflow is URL dispatch to page-rendering views; data models and forms cover vehicles, alerts, complaints and login records. Browser scripts implement page interactions, but the excerpts do not show how pages load them or connect them to backend data. The README is empty, and template contents and several helpers are not shown, so those relationships are omitted.
Main entry points: forms.py Model forms · urls.py Public routes · TVA/views.py Page handlers · dashboard/views.py Panel views
Components 17
Web access
- Public routes
TVA/urls.py - Page handlers
TVA/views.py - Panel route
dashboard/urls.py - Panel views
dashboard/views.py
Public information
- Bus interface
frontend/bus.js - Bus map
static/js/bus_map.js - Restaurant interface
frontend/restaurants.js - Hotel interface
static/js/hotels.js - Landing carousel
frontend/index.js - Panel interface
static/js/panel.js
Civic data
- Alerts records
TVA/models.py - Complaint records
TVA/models.py - Vehicle records
TVA/models.py - Login records
TVA/models.py - Model forms
TVA/forms.py - Application helpers
TVA/helpers.py
Other components
- Visitor
Connections 8
- Visitor → Public routes: requests page
TVA/urls.py - Public routes → Page handlers: dispatches to
TVA/urls.py - Page handlers → Panel views: renders panel
TVA/views.py - Panel route → Panel views: dispatches to
dashboard/urls.py - Model forms → Vehicle records: models
TVA/forms.py - Model forms → Alerts records: models
TVA/forms.py - Model forms → Complaint records: models
TVA/forms.py - Model forms → Login records: models
TVA/forms.py