How yogesh-sav/eventhub works
EventHub is a Django event-discovery and ticket-booking product. Users browse upcoming events, inspect details, save events or book tickets; organizers manage listings and review performance. Accounts and event data provide the core domain, while interaction history supports recommendations and a separate popularity model supports prediction and reporting. The graph reflects the sampled views and model code plus SOURCE INDEX references; unsampled implementation details are represented only where those references establish a relationship.
Main entry points: models.py Events and bookings · events/views.py Event workflows · accounts/views.py Account workflows · core/views.py Home page
Components 13
Accounts
- Account workflows
accounts/views.py - User profiles
accounts/models.py
Event marketplace
- Event workflows
events/views.py - Event forms
events/forms.py - Events and bookings
events/models.py - Organizer access
events/decorators.py
Discovery
- Home page
core/views.py - Recommendations
recommendations/services.py
Insights
- Analytics views
analytics/views.py - Popularity training
ml/management/commands/train_popularity_model.py - Popularity prediction
ml/management/commands/predict_popularity.py - Prediction records
ml/models.py
Other components
- Visitor
Connections 16
- Visitor → Account workflows: uses
- Visitor → Event workflows: browses and books
- Account workflows → User profiles: manages
- Account workflows → Event forms: uses
- Event workflows → Event forms: validates
events/views.py - Event workflows → Events and bookings: reads and updates
events/views.py - Event workflows → Organizer access: checks access
events/views.py - Event workflows → User profiles: uses organizer identity
- Home page → Events and bookings: loads upcoming events
core/views.py - Home page → Recommendations: requests trending events
core/views.py - Recommendations → Events and bookings: reads event activity
recommendations/services.py - Analytics views → Events and bookings: aggregates activity
analytics/views.py - Analytics views → Prediction records: reads predictions
analytics/views.py - Popularity training → Events and bookings: builds training data
ml/management/commands/train_popularity_model.py - Popularity prediction → Events and bookings: loads event data
ml/management/commands/predict_popularity.py - Popularity prediction → Prediction records: records predictions
ml/management/commands/predict_popularity.py