How mturner1158/potting-parlour works
Potting Parlour is a Django plant shop with an ownership-care tracker. The main journey is browsing and filtering the catalog, managing a session basket, completing payment, and—when signed in—having purchased plants added to a personal tracker. Separate branches cover account details and order history, plant-care updates, and shop-owner catalog management. Edges follow shown calls or explicit README behavior; some unsampled views and routing are represented only where their relationships are documented or indexed.
Main entry points: checkout/views.py Checkout flow · webhook_handler.py Payment handler · profiles/views.py Profile and history · plants/views.py Browse and manage
Components 20
Plant catalog
- Browse and manage
plants/views.py - Plants and categories
plants/models.py - Plant form
plants/forms.py
Basket and checkout
- Basket actions
basket/views.py - Basket totals
basket/contexts.py - Checkout flow
checkout/views.py - Order form
checkout/forms.py - Orders and items
checkout/models.py - Payment webhooks
checkout/webhooks.py - Payment handler
checkout/webhook_handler.py
Accounts and orders
- Profile details
profiles/models.py - Profile and history
profiles/views.py - Profile form
profiles/forms.py
Plant tracking
- Tracker dashboard
tracker/views.py - Owned plants and logs
tracker/models.py - Order enrollment
tracker/services.py
Site experience
- Home page
core/views.py
Other components
- Shopper
- Shop manager
- Stripe
Connections 30
- Shopper → Browse and manage: browses
- Shop manager → Browse and manage: manages listings
- Browse and manage → Plants and categories: queries
plants/views.py - Browse and manage → Plant form: uses form
plants/views.py - Shopper → Basket actions: updates basket
- Basket actions → Basket totals: supplies basket data
- Basket totals → Plants and categories: reads plants
basket/contexts.py - Shopper → Checkout flow: checks out
- Checkout flow → Basket totals: reads totals
checkout/views.py - Checkout flow → Order form: validates order
checkout/views.py - Checkout flow → Orders and items: creates order
checkout/views.py - Checkout flow → Profile details: uses saved details
checkout/views.py - Checkout flow → Order enrollment: enrolls purchase
checkout/views.py - Checkout flow → Stripe: initiates payment
- Stripe → Payment webhooks: sends events
checkout/webhooks.py - Payment webhooks → Payment handler: dispatches event
checkout/webhooks.py - Payment handler → Order form: validates metadata
checkout/webhook_handler.py - Payment handler → Orders and items: creates order
checkout/webhook_handler.py - Payment handler → Profile details: updates delivery details
checkout/webhook_handler.py - Payment handler → Order enrollment: enrolls purchase
checkout/webhook_handler.py - Order enrollment → Owned plants and logs: creates owned plants
tracker/services.py - Owned plants and logs → Orders and items: references purchase
tracker/models.py - Owned plants and logs → Plants and categories: references plant
tracker/models.py - Shopper → Profile and history: manages account
- Profile and history → Profile details: updates profile
profiles/views.py - Profile and history → Profile form: uses form
profiles/views.py - Profile and history → Orders and items: shows history
profiles/views.py - Shopper → Tracker dashboard: tracks plants
- Tracker dashboard → Owned plants and logs: reads and updates
tracker/views.py - Shopper → Home page: opens site