How dsilvas2001/django_prueba works
Project Type and Purpose
• It is primarily a backend API system built with Django.
• Provides both a web administration interface (using Django’s built-in admin panel) and a REST API for CRUD operations on images.
• It includes a separate AWS Lambda function for analyzing images to detect and classify them as documents, photos, invoices, or others.
• The project is ready for deployment on AWS Lightsail.
Main Components
a. Django Backend:
• “catalogo” project which includes the overall Django configuration (settings, URLs, and WSGI/ASGI).
• “imagenes” application that handles image models, views, serializers (suggesting use of Django REST Framework), migrations, and tests.
b. Database:
• Use of SQLite (db.sqlite3) for development, with potential to scale to a production-grade database.
c. Media/File Storage:
• “media” folder where uploaded image files are stored (i.e., media/imagenes).
d. Image Classification Service (AWS Lambda):
• This external component that processes and classifies image data.
• Triggers for Lambda either via S3 (for uploaded files) or through direct base64 image payloads.
e. Deployment Environment:
• AWS Lightsail as the deployment target for the Django application.
• AWS S3 for storage and as a trigger for the Lambda function.
Relationships and Interactions
• Interactions between the views and serializers (for API data handling) and the underlying models (database persistence).
• Link the media storage component with the Django backend, indicating that uploaded images are saved to disk.
• AWS S3 with the Lambda function, indicating that file uploads (or events) trigger the classification function.
Architectural Patterns and Technologies
• Model-View-Controller (or Model-View-Template) pattern inherent in Django.
• Use of Django REST Framework components (views, serializers) for the API layer.
• That there is a clear separation between the web backend and the Lambda-based classification functionality.
• Integration with AWS services (Lightsail for deployment, S3 triggers for Lambda) as key points of interest.