How fl4viooliveira/django_ecommerce works
This is a Django e-commerce application. Shoppers browse products, add variants to a session-backed order, provide addresses, and complete payment through PayPal or Stripe; staff maintain the catalog and review orders. Account authentication, profiles, and contact messaging are additional user-facing capabilities. The graph follows documented routes and indexed source references; some view implementations and integrations are only partially excerpted, so those links are limited to the visible evidence.
Main entry points: models.py Catalog and order records · cart/views.py Shop and cart views · urls.py Project URL routing · core/views.py Profile and contact
Components 22
Storefront and cart
- Shop and cart views
cart/views.py - Cart forms
cart/forms.py - Cart session helper
cart/utils.py - Cart count tag
cart/templatetags/cart_template_tags.py - Catalog and order records
cart/models.py
Checkout and payment
- Address and checkout
cart/views.py - PayPal confirmation
cart/views.py - Stripe payment and webhook
cart/views.py
Accounts and operations
- Customer records
core/models.py - Profile and contact
core/views.py - Contact form
core/forms.py - Staff catalog and orders
staff/views.py - Staff product form
staff/forms.py - Staff access mixin
staff/mixins.py
Application platform
- Project URL routing
ecom/urls.py - Django settings
ecom/settings/main.py
Other components
- Shopper
- Stripe
- PayPal
- PostgreSQL database
- Email service
- Site visitor
Connections 27
- Shopper → Project URL routing: requests pages
ecom/urls.py - Project URL routing → Profile and contact: routes home/profile/contact
ecom/urls.py - Project URL routing → Shop and cart views: includes cart routes
ecom/urls.py - Project URL routing → Staff catalog and orders: includes staff routes
ecom/urls.py - Shop and cart views → Cart forms: uses forms
cart/views.py - Shop and cart views → Catalog and order records: queries and updates
cart/views.py - Shop and cart views → Cart session helper: gets session order
cart/views.py - Cart forms → Catalog and order records: validates against
cart/forms.py - Cart count tag → Cart session helper: gets session order
cart/templatetags/cart_template_tags.py - Shop and cart views → Address and checkout: handles checkout
cart/views.py - Address and checkout → Stripe: creates payment intent
cart/views.py - Stripe payment and webhook → Stripe: verifies webhook
cart/views.py - Address and checkout → Catalog and order records: records Stripe payment
cart/views.py - Stripe payment and webhook → Catalog and order records: marks order paid
cart/views.py - PayPal confirmation → Catalog and order records: records confirmation
cart/views.py - PayPal confirmation → PayPal: accepts PayPal result
- Profile and contact → Catalog and order records: reads order history
core/views.py - Profile and contact → Contact form: validates contact
core/views.py - Profile and contact → Email service: sends contact message
core/views.py - Staff catalog and orders → Catalog and order records: manages products and orders
staff/views.py - Staff catalog and orders → Staff product form: uses product form
staff/views.py - Staff catalog and orders → Staff access mixin: checks staff access
staff/views.py - Django settings → PostgreSQL database: configures PostgreSQL
ecom/settings/main.py - Customer records → PostgreSQL database: persists customer records
- Catalog and order records → PostgreSQL database: persists commerce records
- Site visitor → Project URL routing: visits storefront
- Customer records → Catalog and order records: associates user orders