🎉 New Features & Highlights
DjangoEssentials is a lightweight library designed to simplify Django application development by implementing modern patterns such as the repository-service pattern, enhanced model utilities, and Amazon S3 storage integration.
🔹 Repository-Service Pattern
• BaseRepository: Provides reusable CRUD methods for Django models.
• BaseService: Encapsulates business logic using repositories.
• Example: Easily integrate with Django REST Framework (ModelViewSet support included).
🔹 Time-Based Model Utilities
• TimeBasedStampModel: Automatically adds created_at, updated_at, and deleted_at fields to Django models.
• Usage: Extend your models for built-in timestamp management.
🔹 Amazon S3 Storage Integration
• MyS3Storage: Custom Django storage backend for Amazon S3.
• Features:
• Supports public file access.
• Prevents file overwrites.
• Configurable via Django settings.py.