How ossyelouazdi/django-project works
This Django storefront lets visitors browse and filter products, inspect product details, build a cart, and submit checkout; accounts support registration and login. Cart state uses database orders for authenticated users and a browser cookie for guests, with guest items converted into an order during checkout. The project also provides category/product and order administration. The README has no substantive capability description, so the map follows sampled routes and code; template behavior beyond the shown files is not inferred.
Main entry points: views.py Account views · urls.py Store routes · cart.js Cart browser logic · utils.py Cart calculations
Components 17
Web entry and browsing
- Project routes
ecommerce_project/urls.py - Store routes
store/urls.py - Catalog views
store/views.py - Storefront pages
store/templates/store
Cart and checkout
- Cart browser logic
static/js/cart.js - Cart and checkout views
store/views.py - Cart calculations
store/utils.py - Cart and checkout pages
store/templates/store
Commerce domain
- Products and categories
store/models.py - Orders and shipping
store/models.py - Customer records
store/models.py
Accounts and administration
- Account views
store/views.py - Account forms
store/forms.py - Account pages
store/templates/store - Commerce administration
store/admin.py - Django authentication
Other components
- Shopper
Connections 21
- Shopper → Project routes: requests pages
ecommerce_project/urls.py - Project routes → Store routes: includes routes
ecommerce_project/urls.py - Store routes → Catalog views: routes catalog
store/urls.py - Catalog views → Products and categories: queries catalog
store/views.py - Catalog views → Storefront pages: renders pages
store/views.py - Shopper → Cart browser logic: updates cart
static/js/cart.js - Cart browser logic → Cart and checkout views: posts changes
static/js/cart.js - Store routes → Cart and checkout views: routes cart
store/urls.py - Cart and checkout views → Cart calculations: loads cart
store/views.py - Cart and checkout views → Orders and shipping: updates orders
store/views.py - Cart calculations → Products and categories: reads products
store/utils.py - Cart calculations → Orders and shipping: reads and creates
store/utils.py - Cart and checkout views → Cart and checkout pages: renders pages
store/views.py - Cart browser logic → Shopper: stores guest cart
static/js/cart.js - Store routes → Account views: routes accounts
store/urls.py - Account views → Account forms: validates input
store/views.py - Account views → Customer records: creates customer
store/views.py - Account views → Django authentication: authenticates users
store/views.py - Account views → Account pages: renders pages
store/views.py - Commerce administration → Products and categories: manages catalog
store/admin.py - Commerce administration → Orders and shipping: manages orders
store/admin.py