How cybercy1234-cyber/24ct2_hoxuanphuc works
This Django application supports restaurant ordering: customers browse a menu, add items to a session-backed cart, submit an order, and view its status. Separate workflows handle user registration and login, table service requests, and revenue/payment reporting with spreadsheet exports. Menu items, orders, users, and service requests are represented by Django models. The graph follows relationships shown in the excerpts or SOURCE INDEX; unsampled project-level URL wiring and other unverified connections are omitted.
Main entry points: views.py Ordering workflow · orders/models.py Orders and items · menu/models.py Menu items · urls.py Order routes
Components 15
Menu and ordering
- Order routes
orders/urls.py - Ordering workflow
orders/views.py - Orders and items
orders/models.py - Menu items
menu/models.py - Menu admin
menu/admin.py
User accounts
- Account routes
users/urls.py - Account workflow
users/views.py - Registration form
users/forms.py - User accounts
users/models.py
Table service
- Service routes
customer/urls.py - Service requests
customer/views.py - Request records
customer/models.py
Reports
- Report routes
reports/urls.py - Revenue and exports
reports/views.py
Other components
- Restaurant user
Connections 16
- Restaurant user → Order routes: requests pages
orders/urls.py - Order routes → Ordering workflow: dispatches to
orders/urls.py - Ordering workflow → Orders and items: reads and updates
orders/views.py - Ordering workflow → Menu items: loads menu items
orders/views.py - Orders and items → Menu items: references items
orders/models.py - Menu admin → Menu items: registers model
menu/admin.py - Restaurant user → Account routes: requests pages
users/urls.py - Account routes → Account workflow: dispatches to
users/urls.py - Account workflow → Registration form: validates registration
users/views.py - Registration form → User accounts: creates and checks
users/forms.py - Restaurant user → Service routes: requests service
customer/urls.py - Service routes → Service requests: dispatches to
customer/urls.py - Service requests → Request records: creates and updates
customer/views.py - Restaurant user → Report routes: requests reports
reports/urls.py - Report routes → Revenue and exports: dispatches to
reports/urls.py - Revenue and exports → Orders and items: queries orders
reports/views.py