How hnkillnet404/lehainam_24ct1_cnpm works
Urban Threads is a Django streetwear e-commerce site. The customer workflow runs from product discovery and filtering through cart management, checkout, and QR payment; accounts support registration and order history. Reviews, wishlists, promotions, static pages, and Django Admin are distinct supporting capabilities. The README documents SQLite and VietQR. Source excerpts are incomplete and templates are absent from the supplied tree, so UI rendering and some cross-app interactions are not mapped beyond documented or indexed relationships.
Main entry points: settings.py SQLite database · cart/views.py Cart management · payments/views.py QR payments · accounts/views.py Accounts and addresses
Components 23
Catalog and discovery
- Product browsing
products/views.py - Product catalog
products/models.py
Cart and orders
- Cart management
cart/views.py - Cart records
cart/models.py - Checkout and orders
orders/views.py - Order records
orders/models.py - QR payments
payments/views.py - Payment records
payments/models.py
Customer features
- Accounts and addresses
accounts/views.py - User accounts
accounts/models.py - Account forms
accounts/forms.py - Product reviews
reviews/views.py - Review records
reviews/models.py - Wishlists
wishlists/views.py - Wishlist records
wishlists/models.py - Promotions and banners
promotions/views.py - Promotion records
promotions/models.py - Static pages
pages/views.py
Platform and operations
- Admin dashboard
orders/admin.py - SQLite database
urban_threads/settings.py - Django URL routing
urban_threads/urls.py
Other components
- Customer
- VietQR API
Connections 36
- Customer → Product browsing: browses
- Product browsing → Product catalog: queries
products/views.py - Customer → Cart management: manages
- Cart management → Cart records: reads and writes
cart/views.py - Cart management → Product catalog: checks variants
cart/views.py - Cart management → Promotion records: checks coupons
cart/views.py - Customer → Checkout and orders: checks out
- Checkout and orders → Order records: uses orders
orders/views.py - Customer → QR payments: pays by QR
- QR payments → Payment records: uses payments
payments/views.py - QR payments → Order records: uses orders
payments/views.py - QR payments → VietQR API: requests QR
- Customer → Accounts and addresses: manages account
- Accounts and addresses → Account forms: uses forms
accounts/views.py - Accounts and addresses → User accounts: uses accounts
accounts/views.py - Accounts and addresses → Order records: reads history
accounts/views.py - Customer → Product reviews: submits reviews
- Product reviews → Review records: uses reviews
reviews/views.py - Product reviews → Product catalog: targets products
reviews/views.py - Customer → Wishlists: manages wishlist
- Wishlists → Wishlist records: uses wishlist
wishlists/views.py - Wishlists → Product catalog: selects products
wishlists/views.py - Customer → Promotions and banners: views offers
- Promotions and banners → Promotion records: uses promotions
promotions/views.py - Customer → Static pages: visits pages
- Admin dashboard → Order records: manages orders
orders/admin.py - Admin dashboard → SQLite database: manages records
- Django URL routing → Product browsing: routes requests
urban_threads/urls.py - Product browsing → SQLite database: queries via ORM
- Cart management → SQLite database: stores cart data
- Checkout and orders → SQLite database: stores orders
- QR payments → SQLite database: stores payments
- Accounts and addresses → SQLite database: stores accounts
- Product reviews → SQLite database: stores reviews
- Wishlists → SQLite database: stores wishlists
- Promotions and banners → SQLite database: stores offers