How niteshmandall/bharatfd_assignment works
Main System Components
a) Web Layer:
• Django Web Server (handling HTTP requests)
• URL Router (from urls.py)
• Admin Interface
b) Application Layer:
• FAQ Views (API endpoints)
• Serializers (data transformation)
• Models (data structure)
c) Data Layer:
• SQLite Database
• Redis Cache (for translations)
Component Relationships
a) Primary Request Flow:
• Client → URL Router → Views → Serializers → Models → Database
• Return path: Database → Models → Serializers → Views → Client
b) Caching Flow:
• Views → Redis Cache (check/store translations)
• Redis Cache → Views (retrieve cached translations)
Specific Implementation Details
Technical elements:
• Django REST Framework components
• Language parameter handling (lang=hi)
• Cache timeout (1 hour)
Component Details
For each major component, add labels showing:
• FAQ Model (fields and relationships)
• View endpoints and methods
• Serializer transformations
• Cache key structure