How quiznett/quiznet_server works
QuizNet is a Django REST backend for user access and quiz creation, participation, scoring, and result retrieval. The primary workflow routes an API request to account or quiz views, validates/transforms data through serializers, and reads or writes persistent records. OTP email verification and token-cookie handling are visible in the account views; quiz attempts include start, answer saving, status, submission, grading, and response retrieval. The README also describes Channels-based live quizzes and chat, but no consumer or routing implementation appears in the supplied tree, so those links are not mapped as verified runtime components.
Main entry points: account/views.py Account endpoints · urls.py Project routes · quiz/views.py Quiz and attempts · models.py Quiz records
Components 14
API routing
- Project routes
quiznet/quiznet/urls.py - Account routes
quiznet/account/urls.py - Quiz routes
quiznet/quiz/urls.py
Accounts and access
- Account endpoints
quiznet/account/views.py - Account validation
quiznet/account/serializers.py - Token refresh
quiznet/account/middleware.py
Quiz lifecycle
- Quiz and attempts
quiznet/quiz/views.py - Quiz serialization
quiznet/quiz/serializers.py - Live quiz and chat
Persistent data
- Quiz records
quiznet/quiz/models.py - OTP records
quiznet/account/models.py
Other components
- API client
- Email delivery
- PostgreSQL
Connections 14
- API client → Project routes: sends requests
quiznet/quiznet/urls.py - Project routes → Account routes: includes routes
quiznet/quiznet/urls.py - Project routes → Quiz routes: includes routes
quiznet/quiznet/urls.py - Account routes → Account endpoints: routes to
quiznet/account/urls.py - Quiz routes → Quiz and attempts: routes to
quiznet/quiz/urls.py - Account endpoints → Account validation: validates with
quiznet/account/views.py - Account endpoints → OTP records: reads and writes
quiznet/account/views.py - Account endpoints → Email delivery: sends OTP
quiznet/account/views.py - Account endpoints → Token refresh: sets token cookies
- Quiz and attempts → Quiz serialization: serializes data
quiznet/quiz/views.py - Quiz and attempts → Quiz records: reads and writes
quiznet/quiz/views.py - Quiz serialization → Quiz records: maps records
quiznet/quiz/serializers.py - OTP records → PostgreSQL: persists in
- Quiz records → PostgreSQL: persists in