How hoangkhuong55551/buyflightstickets works
SkyBook is a Django flight-booking application. Customers enter through the site, find flights, select a seat, provide passenger details, pay, and manage their bookings; the README also documents account management, recommendations, and refund requests. The graph preserves those product branches and the booking, ticket, flight, payment, and user data layers. View implementations and root routing were not sampled, so some connections reflect README-documented capabilities and the configured app structure; uncertain internal handoffs are omitted.
Main entry points: urls.py Django routing · bookings/views.py Booking and seats · models.py Flight catalog · recommendations/views.py Featured destinations
Components 19
Web entry
- Django routing
config/urls.py
Flight discovery
- Flight search
flights/views.py - Flight catalog
flights/models.py - Featured destinations
recommendations/views.py - Recommendation scoring
recommendations/services.py - Recommendation data
recommendations/models.py
Booking lifecycle
- Booking and seats
bookings/views.py - Passenger details
bookings/forms.py - Bookings and tickets
bookings/models.py - Expired booking cleanup
bookings/management/commands/cancel_expired_bookings.py - Seat selection UI
static/js/seat.js
Accounts and recommendations
- Account access
users/views.py - User profiles
users/models.py
Payments and data
- Payment and refunds
payments/views.py - Payment records
payments/models.py - PostgreSQL
- Email service
Other components
- Customer
- Administrator
Connections 25
- Customer → Django routing: requests pages
- Administrator → Django routing: requests admin
- Django routing → Flight search: routes flight requests
- Django routing → Featured destinations: routes destination requests
- Django routing → Booking and seats: routes booking requests
- Django routing → Account access: routes account requests
- Django routing → Payment and refunds: routes payment requests
- Flight search → Flight catalog: queries flights
- Featured destinations → Recommendation data: loads destinations
- Featured destinations → Recommendation scoring: scores options
- Booking and seats → Flight catalog: loads flight
- Booking and seats → Bookings and tickets: creates and reads bookings
- Booking and seats → Passenger details: validates passenger details
- Booking and seats → Payment and refunds: redirects to payment
- Seat selection UI → Customer: shows seat selection
- Customer → Seat selection UI: selects seat
- Account access → User profiles: manages accounts
- Payment and refunds → Payment records: records transactions
- Expired booking cleanup → Bookings and tickets: cancels expired bookings
- Expired booking cleanup → Flight catalog: releases seats
- Flight catalog → PostgreSQL: persists flight data
- Bookings and tickets → PostgreSQL: persists booking data
- Recommendation data → PostgreSQL: persists destination data
- User profiles → PostgreSQL: persists user data
- Payment records → PostgreSQL: persists payment data