How uday-unni/loot_box works
Lootbox-ecommerce is a Django gaming storefront covering account access, product discovery, guest or authenticated carts, checkout, stock updates, and order management. The principal flow runs from browsing/searching to cart operations, then checkout creates order records and reduces stock; customers can later view or cancel orders. Django URL configuration dispatches requests to app views, while the models define the catalog, cart, and order data. Relationships shown are limited to routes, calls, and model interactions visible in the excerpts or documented in the README.
Main entry points: urls.py Project URL routes · orders/views.py Checkout and order actions · store/views.py Browse and cart · models.py Catalog and cart data
Components 11
Accounts
- Account actions
accounts/views.py - Registration form
accounts/forms.py
Catalog and cart
- Browse and cart
store/views.py - Catalog and cart data
store/models.py
Order lifecycle
- Checkout and order actions
orders/views.py - Order records
orders/models.py
Request routing
- Project URL routes
gamer_store/urls.py - Account routes
accounts/urls.py - Store routes
store/urls.py - Order routes
orders/urls.py
Other components
- Shopper
Connections 13
- Shopper → Project URL routes: requests pages
gamer_store/urls.py - Project URL routes → Account routes: includes accounts
gamer_store/urls.py - Project URL routes → Store routes: includes store
gamer_store/urls.py - Project URL routes → Order routes: includes orders
gamer_store/urls.py - Project URL routes → Browse and cart: routes home
gamer_store/urls.py - Account routes → Account actions: dispatches requests
accounts/urls.py - Account actions → Registration form: validates registration
accounts/views.py - Store routes → Browse and cart: dispatches requests
store/urls.py - Browse and cart → Catalog and cart data: queries and updates
store/views.py - Order routes → Checkout and order actions: dispatches requests
orders/urls.py - Checkout and order actions → Catalog and cart data: reads cart and changes stock
orders/views.py - Checkout and order actions → Order records: creates and reads orders
orders/views.py - Order records → Catalog and cart data: references products
orders/models.py