How lnrd01/itcs306-mini-capstone works
Tool Haven is a Django hardware storefront with customer shopping and staff operations. Customers browse products, manage a session cart, submit checkout, and view order confirmation; staff manage products, orders, messages, and editable site content. The graph separates page views, JSON endpoints, shared domain data, and supporting services. The README is empty, and browser-side wiring is not shown in the excerpts, so API-to-browser links and unsampled integrations are omitted.
Main entry points: api/views.py JSON endpoints · admin_views.py Management pages · models.py Shop records · pages/views.py Storefront pages
Components 13
Customer storefront
- Storefront pages
toolhaven/pages/views.py - Auth and product forms
toolhaven/pages/forms.py - JSON endpoints
toolhaven/api/views.py
Staff operations
- Management pages
toolhaven/pages/admin_views.py
Shared services
- Template context
toolhaven/pages/context_processors.py - Content template tags
toolhaven/pages/templatetags/site_content.py - Session cart
toolhaven/utils/cart.py - Editable content service
toolhaven/utils/content.py - API request helpers
toolhaven/utils/http.py - Access controls
toolhaven/utils/permissions.py
Domain data
- Shop records
toolhaven/core/models.py
Other components
- Customer
- Staff user
Connections 19
- Customer → Storefront pages: browses
- Customer → JSON endpoints: submits API requests
- Staff user → Management pages: manages shop
toolhaven/pages/admin_views.py - Storefront pages → Shop records: queries orders/products
toolhaven/pages/views.py - Storefront pages → Session cart: reads cart
toolhaven/pages/views.py - Storefront pages → Auth and product forms: uses signup form
toolhaven/pages/views.py - JSON endpoints → Shop records: reads and writes
toolhaven/api/views.py - JSON endpoints → Session cart: updates cart
toolhaven/api/views.py - JSON endpoints → API request helpers: parses JSON
toolhaven/api/views.py - JSON endpoints → Access controls: checks access
toolhaven/api/views.py - Management pages → Shop records: manages records
toolhaven/pages/admin_views.py - Management pages → Auth and product forms: uses product form
toolhaven/pages/admin_views.py - Management pages → Editable content service: edits site content
toolhaven/pages/admin_views.py - Management pages → Access controls: requires staff access
toolhaven/pages/admin_views.py - Template context → Editable content service: loads site details
toolhaven/pages/context_processors.py - Template context → Session cart: counts cart items
toolhaven/pages/context_processors.py - Template context → Shop records: counts staff notices
toolhaven/pages/context_processors.py - Content template tags → Editable content service: gets text and images
toolhaven/pages/templatetags/site_content.py - Editable content service → Shop records: loads saved content
toolhaven/utils/content.py