How cuongtran33200-ctrl/tranvietcuong24ct1-cnpm works
Shop SBCB is a server-rendered Django technology store. Customers browse and review products, manage a session cart, check out, and track orders; staff handle orders, inventory, customers, and support, while admins manage roles and view analytics. The graph separates request routing, customer workflows, staff/admin operations, and domain data. Source excerpts show the cart, checkout, staff, and admin behavior; other listed capabilities and infrastructure links are included where the README documents them.
Main entry points: models.py Shop models · urls.py Shop routes · views.py Customer workflows · staff_views.py Staff workflows
Components 17
Web entry
- Shop routes
backend/shop/urls.py - Home page
backend/home/views.py
Customer commerce
- Customer workflows
backend/shop/views.py - Input forms
backend/shop/forms.py - Session cart
backend/shop/cart.py - Storefront templates
frontend/templates/shop - Account templates
frontend/templates/registration
Staff and admin
- Staff workflows
backend/shop/staff_views.py - Admin dashboard
backend/shop/admin_views.py - Role checks
backend/shop/decorators.py - Django admin
backend/shop/admin.py
Domain and storage
- Shop models
backend/shop/models.py - MySQL database
- Cloudinary images
Other components
- Customer
- Staff user
- Admin user
Connections 22
- Customer → Shop routes: requests pages
README.md - Staff user → Shop routes: requests operations
README.md - Admin user → Shop routes: requests admin
README.md - Shop routes → Customer workflows: dispatches
backend/shop/urls.py - Shop routes → Staff workflows: dispatches
backend/shop/urls.py - Shop routes → Admin dashboard: dispatches
backend/shop/urls.py - Customer workflows → Input forms: validates input
backend/shop/views.py - Customer workflows → Session cart: uses cart
backend/shop/views.py - Customer workflows → Shop models: reads and writes
backend/shop/views.py - Session cart → Shop models: loads products
backend/shop/cart.py - Input forms → Shop models: model forms
backend/shop/forms.py - Customer workflows → Storefront templates: renders pages
README.md - Shop routes → Account templates: serves login
backend/shop/urls.py - Staff workflows → Role checks: checks staff role
backend/shop/staff_views.py - Admin dashboard → Role checks: checks admin role
backend/shop/admin_views.py - Staff workflows → Shop models: reads and updates
backend/shop/staff_views.py - Admin dashboard → Shop models: queries analytics
backend/shop/admin_views.py - Staff workflows → Storefront templates: renders operations
backend/shop/staff_views.py - Admin dashboard → Storefront templates: renders dashboard
backend/shop/admin_views.py - Django admin → Shop models: registers models
backend/shop/admin.py - Shop models → MySQL database: persists records
README.md - Shop models → Cloudinary images: stores product images
README.md