How maingocson11/24ct2_maingocson._cnpm works
MENSWEAR is a Vietnamese Django menswear shop with customer, employee, and administrator workflows. Customers browse and filter products, manage a cart, apply coupons, and place COD orders; employees manage inventory and order fulfillment, while administrators manage catalog and accounts. The sampled checkout service performs transactional stock changes and records order events. The README also documents product images, reviews, articles, stores, and subscriptions. Some of those feature routes are unsampled, so their connections are documented at a high level rather than inferred from unseen code.
Main entry points: models.py Shop records · views.py Staff operations · admin.py Admin management · services.py Order lifecycle
Components 15
Storefront
- Storefront
shop/views.py - Shop content
shop/views.py - Accounts
shop/views.py
Ordering
- Cart and coupons
shop/views.py - Checkout
shop/views.py - Order lifecycle
shop/services.py
Shop operations
- Staff operations
shop/views.py - Admin management
shop/admin.py - Input forms
shop/forms.py - Demo catalog seed
shop/management/commands/seed_demo.py
Data and access
- Shop records
shop/models.py - SQLite database
config/settings.py
Other components
- Customer
- Employee
- Administrator
Connections 19
- Customer → Storefront: browses products
README.md - Storefront → Shop records: queries catalog
shop/views.py - Customer → Accounts: registers or signs in
README.md - Customer → Cart and coupons: manages cart
README.md - Cart and coupons → Shop records: checks coupons
shop/views.py - Customer → Checkout: submits order
README.md - Checkout → Order lifecycle: places order
shop/views.py - Order lifecycle → Shop records: updates stock and orders
shop/services.py - Employee → Staff operations: fulfills orders
README.md - Staff operations → Order lifecycle: transitions orders
shop/views.py - Staff operations → Shop records: records stock changes
README.md - Administrator → Admin management: manages shop
README.md - Admin management → Input forms: uses forms
shop/admin.py - Input forms → Shop records: validates records
shop/forms.py - Admin management → Shop records: manages catalog and accounts
shop/admin.py - Customer → Shop content: uses shop features
README.md - Shop content → Shop records: stores reviews and subscriptions
README.md - Demo catalog seed → Shop records: seeds catalog
shop/management/commands/seed_demo.py - Shop records → SQLite database: persists records
config/settings.py