How sdeadarsh/lets_quiz works
Project type and purpose
• This is a full-stack web application built with the Django framework in Python.
• Its purpose is to host an online quiz system: user registration, login, randomized multiple-choice quizzes, result feedback, and a public leaderboard. An admin interface lets administrators add/publish questions.
File structure
• Top-level directories:
• lets_quiz/ ← Django project root
– lets_quiz/settings.py, urls.py, wsgi.py
– manage.py
• quiz/ ← Django app for quiz functionality
– models.py, views.py, forms.py, urls.py, admin.py, tests.py
– migrations/
• static/ and templates/← static assets (CSS/JS) and HTML templates (base, quiz pages, admin override)
• images/ ← illustrative screenshots
• Pipfile, requirements.txt ← dependency definitions
• .github/, CI/config → project governance, issue templates
• Patterns:
• MVC (Django’s MTV): models in quiz/models.py, views in quiz/views.py, templates under templates/quiz
• Admin site extension: quiz/admin.py overrides and search/filter features
• Settings/configuration in lets_quiz/settings.py
README for additional insights
• Django ORM manages user and quiz models (questions, choices, scores).
• Authentication and permissions: built-in login/logout, superuser for admin.
• Random question logic and tracking attempted questions in the quiz views/models.
• Leaderboard is computed from user score model.
Elements
• Labels: “Browser”, “Django App Server”, “Database”, “Admin Interface”
• HTTP requests and responses
• DB read/write operations
• Blue rectangles for components (frontend, backend, DB)