How shyam999/django-ecommerce works
Django E-commerce is a Django storefront whose documented workflow takes a shopper from product discovery through a session-backed cart, optional coupon application, and order creation. Its main internal layers are catalog and promotion models, request-handling views/forms, and Django admin. The README also advertises search and Stripe payments, but the provided source excerpts do not establish their implementation or wiring; those branches are therefore shown as documented capabilities with unverified links.
Main entry points: order/views.py Order Creation · cart/views.py Cart Actions · models.py Products And Categories · shop/views.py Product Catalog
Components 18
Storefront
- Product Catalog
shop/views.py - Catalog Pages
shop/templates/shop - Product Search
shop
Cart And Checkout
- Cart Actions
cart/views.py - Session Cart
cart/cart.py - Cart Form
cart/forms.py - Cart Page
cart/templates/cart/detail.html - Coupon Apply
coupons/views.py - Coupon Form
coupons/forms.py - Order Creation
order/views.py - Order Form
order/forms.py - Order Pages
order/templates/order
Commerce Data
- Products And Categories
shop/models.py - Coupons
coupons/models.py - Orders And Items
order/models.py
Admin And Integrations
- Admin Dashboard
shop/admin.py - Stripe Payments
Other components
- Shopper
Connections 24
- Shopper → Product Catalog: browses
README.md - Product Catalog → Products And Categories: queries
shop/views.py - Product Catalog → Cart Form: creates form
shop/views.py - Product Catalog → Catalog Pages: renders
README.md - Shopper → Product Search: searches
README.md - Cart Actions → Session Cart: uses
cart/views.py - Cart Actions → Products And Categories: loads product
cart/views.py - Cart Actions → Cart Form: validates
cart/views.py - Session Cart → Products And Categories: loads items
cart/cart.py - Session Cart → Coupons: looks up
cart/cart.py - Cart Actions → Cart Page: renders
cart/views.py - Coupon Apply → Coupon Form: validates
coupons/views.py - Coupon Apply → Coupons: validates code
coupons/views.py - Coupon Apply → Cart Actions: redirects to
coupons/views.py - Order Creation → Session Cart: reads cart
order/views.py - Order Creation → Order Form: validates
order/views.py - Order Creation → Orders And Items: creates items
order/views.py - Orders And Items → Products And Categories: references
order/models.py - Order Creation → Order Pages: renders
order/views.py - Shopper → Cart Actions: manages cart
README.md - Shopper → Coupon Apply: applies coupon
README.md - Shopper → Order Creation: places order
README.md - Admin Dashboard → Products And Categories: manages
shop/admin.py - Order Creation → Stripe Payments: may charge
README.md