How flatplanet/django-ecommerce works
This Django e-commerce application lets shoppers browse and search a product catalog, manage a session-backed cart, provide shipping details, and proceed to PayPal checkout; order creation and shipping-status management are also present. The main request flow is routed through the project URL configuration to store, cart, or payment views. Those views use catalog, profile, cart, and order models. The excerpts show these interactions, but not PayPal’s callback handling or template behavior, so those are not expanded here.
Main entry points: payment/views.py Checkout and Orders · store/views.py Catalog and Accounts · urls.py Project Routes · cart.py Cart Engine
Components 18
Routing and Configuration
- Project Routes
ecom/urls.py - Django Settings
ecom/settings.py - Store Routes
store/urls.py - Cart Routes
cart/urls.py - Payment Routes
payment/urls.py
Store and Accounts
- Catalog and Accounts
store/views.py - Account Forms
store/forms.py - Catalog and Profiles
store/models.py
Shopping Cart
- Cart Handlers
cart/views.py - Cart Engine
cart/cart.py
Checkout and Orders
- Checkout and Orders
payment/views.py - Shipping and Payment Forms
payment/forms.py - Shipping and Order Data
payment/models.py
Other components
- Shopper
- Store Admin
- Django Session
- PostgreSQL
- PayPal
Connections 26
- Shopper → Project Routes: requests pages
ecom/urls.py - Store Admin → Project Routes: requests admin
ecom/urls.py - Project Routes → Store Routes: routes store
ecom/urls.py - Project Routes → Cart Routes: routes cart
ecom/urls.py - Project Routes → Payment Routes: routes payment
ecom/urls.py - Project Routes → Django Settings: loads settings
ecom/urls.py - Store Routes → Catalog and Accounts: dispatches requests
store/urls.py - Cart Routes → Cart Handlers: dispatches requests
cart/urls.py - Payment Routes → Checkout and Orders: dispatches requests
payment/urls.py - Catalog and Accounts → Catalog and Profiles: queries and updates
store/views.py - Catalog and Accounts → Account Forms: uses forms
store/views.py - Catalog and Accounts → Shipping and Payment Forms: uses shipping form
store/views.py - Catalog and Accounts → Shipping and Order Data: reads shipping
store/views.py - Catalog and Accounts → Cart Engine: restores saved cart
store/views.py - Cart Handlers → Cart Engine: updates cart
cart/views.py - Cart Engine → Catalog and Profiles: looks up products and profiles
cart/cart.py - Cart Engine → Django Session: reads and writes session
cart/cart.py - Checkout and Orders → Cart Engine: reads cart totals
payment/views.py - Checkout and Orders → Shipping and Payment Forms: uses checkout forms
payment/views.py - Checkout and Orders → Shipping and Order Data: creates and updates orders
payment/views.py - Checkout and Orders → Catalog and Profiles: reads products and profiles
payment/views.py - Checkout and Orders → Django Session: reads shipping session
payment/views.py - Checkout and Orders → PayPal: builds payment form
payment/views.py - Django Settings → PostgreSQL: configures database
ecom/settings.py - Catalog and Profiles → PostgreSQL: persists models
- Shipping and Order Data → PostgreSQL: persists models