How kidusptr/mystore works
This is a Django REST e-commerce store: clients browse catalog items, manage carts, and create orders, with customer and order data persisted by the store models. The store API also covers collections, reviews, product images, customer profiles, and order administration. Supporting areas include custom user configuration, tagging, a small HTTP demo, and a scheduled Celery task. Source excerpts show the store view-to-serializer/model relationships; URL wiring and several app behaviors are not shown, so those links are omitted.
Main entry points: views.py Commerce Endpoints · models.py Commerce Records · common.py Django Settings · serializers.py Commerce Serializers
Components 20
Store API
- Store Routes
store/urls.py - Commerce Endpoints
store/views.py - Commerce Serializers
store/serializers.py - Product Filters
store/filters.py - API Pagination
store/pagination.py - API Permissions
store/permissions.py
Commerce Data
- Commerce Records
store/models.py - File Validation
store/validators.py - Customer Creation
store/signals/handlers.py - Order Event Handler
core/signals/handlers.py
Identity and Tags
- Custom User
core/models.py - User Serializer
core/serializers.py - Tags
tags/models.py - Admin Setup
core/admin.py
Other Runtime
- HTTP Demo
playground/views.py - Customer Task
playground/tasks.py - Celery Setup
mystore/celery.py - Django Settings
mystore/settings/common.py
Other components
- API Client
- httpbin
Connections 18
- API Client → Store Routes: sends requests
store/urls.py - Store Routes → Commerce Endpoints: routes to
store/urls.py - Commerce Endpoints → Commerce Serializers: uses serializers
store/views.py - Commerce Endpoints → Commerce Records: queries records
store/views.py - Commerce Endpoints → Product Filters: filters products
store/views.py - Commerce Endpoints → API Pagination: paginates results
store/views.py - Commerce Endpoints → API Permissions: checks access
store/views.py - Commerce Serializers → Commerce Records: reads and writes
store/serializers.py - Commerce Serializers → Order Event Handler: emits order event
store/serializers.py - Commerce Records → File Validation: validates images
store/models.py - Customer Creation → Commerce Records: creates customer
store/signals/handlers.py - Custom User → Customer Creation: triggers on save
- Django Settings → Custom User: sets user model
mystore/settings/common.py - Django Settings → User Serializer: configures serializer
mystore/settings/common.py - Admin Setup → Tags: registers tag inline
core/admin.py - HTTP Demo → httpbin: requests delay
playground/views.py - Django Settings → Customer Task: schedules task
mystore/settings/common.py - Customer Task → Celery Setup: uses shared task
playground/tasks.py