How vy2351220277-design/nguyenngocvy_24ct1_cnpm works
Umi-Town is a Django restaurant-ordering application. Customers browse and review food, manage accounts and a cart, then check out, pay by COD or a VNPay simulation, and view orders. Staff have an analytics dashboard; Django admin supports catalog management. The graph follows the sampled request handlers and model relationships. Some URL routing and model links are supported only by the SOURCE INDEX; the seed-data command is included because it is a core module, not as a deployment step.
Main entry points: urls.py Request routing · models.py Categories and food · orders/views.py Checkout and order views · cart/views.py Cart handling
Components 19
Web entry
- Request routing
config/urls.py - Account routes
apps/accounts/urls.py - Cart routes
apps/cart/urls.py - Order routes
apps/orders/urls.py
Food catalog
- Menu and food views
apps/core/views.py - Categories and food
apps/menu/models.py - Sample data command
apps/menu/management/commands/seed_data.py
Customer features
- Account and wishlist
apps/accounts/views.py - Profiles, wishlists, reviews
apps/accounts/models.py
Orders and payments
- Cart handling
apps/cart/views.py - Cart and items
apps/cart/models.py - Checkout and order views
apps/orders/views.py - Orders and order items
apps/orders/models.py - Payment simulation
apps/orders/views.py
Staff operations
- Sales dashboard
apps/core/views.py - Catalog administration
apps/menu/admin.py - Django admin site
Other components
- Customer
- Staff user
Connections 29
- Customer → Request routing: requests pages
config/urls.py - Request routing → Menu and food views: routes menu
config/urls.py - Request routing → Account routes: includes accounts
config/urls.py - Request routing → Cart routes: includes cart
config/urls.py - Request routing → Order routes: includes orders
config/urls.py - Account routes → Account and wishlist: routes requests
apps/accounts/urls.py - Cart routes → Cart handling: routes requests
apps/cart/urls.py - Order routes → Checkout and order views: routes requests
apps/orders/urls.py - Menu and food views → Categories and food: reads catalog
apps/core/views.py - Menu and food views → Profiles, wishlists, reviews: updates reviews
apps/core/views.py - Account and wishlist → Profiles, wishlists, reviews: manages profiles
apps/accounts/views.py - Account and wishlist → Categories and food: selects food
apps/accounts/views.py - Cart handling → Cart and items: manages cart
apps/cart/views.py - Cart handling → Categories and food: looks up food
apps/cart/views.py - Checkout and order views → Cart handling: gets cart
apps/orders/views.py - Checkout and order views → Cart and items: reads cart items
apps/orders/views.py - Checkout and order views → Orders and order items: creates orders
apps/orders/views.py - Checkout and order views → Payment simulation: dispatches payment
apps/orders/views.py - Payment simulation → Orders and order items: updates payment status
apps/orders/views.py - Sample data command → Categories and food: creates catalog
apps/menu/management/commands/seed_data.py - Sample data command → Profiles, wishlists, reviews: creates profiles
apps/menu/management/commands/seed_data.py - Sample data command → Orders and order items: creates sample orders
apps/menu/management/commands/seed_data.py - Staff user → Request routing: requests dashboard
config/urls.py - Request routing → Sales dashboard: routes dashboard
config/urls.py - Sales dashboard → Orders and order items: aggregates sales
apps/core/views.py - Sales dashboard → Categories and food: summarizes inventory
apps/core/views.py - Request routing → Django admin site: routes admin
config/urls.py - Django admin site → Catalog administration: registers catalog
- Catalog administration → Categories and food: manages catalog
apps/menu/admin.py