How rehan1504-rehan/northstar_store works
Northstar Store is a Django storefront and simple order-management application. Customers register or sign in, browse and search the catalog, add stock-checked quantities to a persistent cart, and submit shipping details at checkout; the order and item price snapshots are saved while inventory is reduced. Customers can review and cancel eligible orders, which restores stock. Staff manage catalog, images, and order status through Django Admin. The README documents these capabilities; sampled source was limited, so uncertain view-to-model wiring is represented only where clearly supported.
Main entry points: views.py Store views · models.py Products and categories · settings.py Configured database · context_processors.py Shared page context
Components 19
Storefront
- Store routes
store/urls.py - Store views
store/views.py - Store pages
templates/store - Store interactions
static/store/js/site.js - Account forms
store/forms.py - Catalog browsing
store/views.py - Shared page context
store/context_processors.py
Commerce
- Persistent cart
store/models.py - Checkout and cancellation
store/views.py - Orders and items
store/models.py - Products and categories
store/models.py
Store operations
- Store admin
store/admin.py - Django accounts
ecommerce/settings.py
Persistence
- Configured database
ecommerce/settings.py - Image storage
store/storage.py - Stored media
store/models.py
Other components
- Shopper
- Staff
- Django Admin
Connections 27
- Shopper → Store routes: requests pages
- Store routes → Store views: dispatches
- Store views → Store pages: renders
- Store pages → Store interactions: loads scripts
- Store views → Account forms: validates forms
- Store views → Catalog browsing: serves catalog
- Store views → Products and categories: queries catalog
- Store views → Persistent cart: updates cart
- Store views → Checkout and cancellation: handles orders
- Checkout and cancellation → Orders and items: creates or cancels
- Checkout and cancellation → Products and categories: adjusts stock
- Store views → Orders and items: shows order history
- Store admin → Products and categories: manages catalog
- Store admin → Orders and items: manages orders
- Django Admin → Store admin: uses
- Staff → Django Admin: operates
- Account forms → Django accounts: authenticates users
- Products and categories → Image storage: stores image files
- Image storage → Stored media: reads and writes
- Store views → Shared page context: renders shared data
- Shared page context → Persistent cart: counts cart items
- Shared page context → Products and categories: queries navigation
- Persistent cart → Configured database: persists
- Orders and items → Configured database: persists
- Products and categories → Configured database: persists
- Django accounts → Configured database: persists
- Stored media → Configured database: persists bytes