How rezapy216/reservation-site works
This is a Django hotel and room reservation site. Visitors browse rooms, inspect a room, and—when authenticated—submit dates and guest count to create a booking; booking validation checks dates, capacity, and conflicting reservations. A management command expires stale pending holds. The repository also exposes a small versioned room API, though its sampled detail endpoint is unfinished. The README describes the product broadly; registration and account-page behavior are not established by the sampled implementation, so those flows are not mapped.
Main entry points: bookings/views.py Booking workflow · models.py Booking rules · urls.py URL configuration · rooms/views.py Room pages
Components 17
Web routing
- URL configuration
core/core/urls.py - Room routes
core/rooms/urls.py - Booking routes
core/bookings/urls.py
Room discovery
- Room pages
core/rooms/views.py - Rooms and media
core/rooms/models.py - Room templates
core/templates/rooms - Room API routes
core/rooms/api/v1/urls.py - Room API
core/rooms/api/v1/views.py
Reservations
- Booking workflow
core/bookings/views.py - Booking form
core/bookings/forms.py - Booking rules
core/bookings/models.py - Booking templates
core/templates/bookings - Hold expiry
core/bookings/management/commands/expire_bookings.py
Identity and data
- Custom user
core/accounts/models.py - Application settings
core/core/settings.py
Other components
- Visitor
- SQLite database
Connections 17
- Visitor → URL configuration: opens site
- URL configuration → Room routes: routes to
core/core/urls.py - URL configuration → Booking routes: routes to
core/core/urls.py - Room routes → Room pages: dispatches to
core/rooms/urls.py - Booking routes → Booking workflow: dispatches to
core/bookings/urls.py - Room pages → Rooms and media: queries
core/rooms/views.py - Room pages → Room templates: renders
core/rooms/views.py - Booking workflow → Booking form: uses
core/bookings/views.py - Booking workflow → Rooms and media: loads room
core/bookings/views.py - Booking workflow → Booking rules: saves booking
core/bookings/views.py - Booking workflow → Booking templates: renders
core/bookings/views.py - Booking rules → Rooms and media: references room
core/bookings/models.py - Booking rules → Custom user: references user model
- Hold expiry → Booking rules: expires holds
core/bookings/management/commands/expire_bookings.py - Room API routes → Room API: dispatches to
core/rooms/api/v1/urls.py - Application settings → Custom user: configures auth
core/core/settings.py - Application settings → SQLite database: configures store
core/core/settings.py