- Add CatalogueImage model with FK to Product - Add image resize service (strict/non-strict modes with configurable dimensions) - Add CRUD API endpoints with admin-only write permissions - Add catalogue_images field to product listing/detail endpoints - Serve media files in development via static() - 28 TDD tests covering model, API, permissions, resize, and product listing
19 lines
522 B
Plaintext
19 lines
522 B
Plaintext
Django==5.0.6
|
|
djangorestframework
|
|
django-cors-headers
|
|
djangorestframework-simplejwt
|
|
sabatron-tryton-rpc-client==7.4.0
|
|
|
|
# Database drivers
|
|
psycopg2-binary # PostgreSQL driver for production
|
|
|
|
# Production server
|
|
gunicorn # WSGI HTTP Server for production
|
|
|
|
# Environment variable management
|
|
python-decouple # Manage environment variables and settings
|
|
|
|
# Static files serving in production/staging
|
|
whitenoise==6.6.0 # Serve static files efficiently with compression
|
|
Pillow # Image processing for catalogue image resizing
|