How rishank-shah/exam-portal works
Exam Portal is a Django application for faculty to create exams and students to take them and view results. The main workflow is faculty-authored questions and papers assembled into scheduled exams, followed by student submissions, score calculation, and result viewing. Separate capabilities include account registration and verification, faculty authorization, login preferences, and professor email alerts for repeated window-focus changes. The graph reflects the sampled code and README; some client-side timer and focus behavior is documented but its implementation was not sampled.
Main entry points: questions/views.py Exam attempt and scoring · questionpaper_models.py Question papers · student/views.py Student accounts · faculty/views.py Faculty accounts
Components 20
Accounts and access
- Student accounts
Exam/student/views.py - Faculty accounts
Exam/faculty/views.py - Student profile
Exam/student/models.py - Faculty profile
Exam/faculty/models.py
Exam authoring
- Question bank
Exam/questions/question_models.py - Question papers
Exam/questions/questionpaper_models.py - Exam setup
Exam/questions/models.py - Exam management
Exam/questions/views.py
Exam participation
- Exam listings
Exam/questions/views.py - Exam attempt and scoring
Exam/questions/views.py - Attempts and results
Exam/student/models.py - Result viewing
Exam/questions/views.py - Timer and focus behavior
Exam/student - Professor alert API
Exam/student/api.py
Student preferences
- Preference settings
Exam/studentPreferences/views.py - Login email preference
Exam/studentPreferences/models.py
Other components
- Student
- Faculty
- Administrator
- Email service
Connections 26
- Student → Student accounts: registers or logs in
Exam/student/views.py - Student accounts → Student profile: saves profile
Exam/student/views.py - Student → Faculty accounts: registers or logs in
Exam/faculty/views.py - Faculty accounts → Faculty profile: saves profile
Exam/faculty/views.py - Administrator → Faculty accounts: grants access
- Faculty → Exam management: manages exams
Exam/questions/views.py - Exam management → Question bank: creates questions
Exam/questions/views.py - Exam management → Question papers: creates papers
Exam/questions/views.py - Exam management → Exam setup: creates exams
Exam/questions/views.py - Question papers → Question bank: includes questions
Exam/questions/questionpaper_models.py - Exam setup → Question papers: selects paper
Exam/questions/models.py - Student → Exam listings: browses exams
Exam/questions/views.py - Exam listings → Attempts and results: checks attempts
Exam/questions/views.py - Student → Exam attempt and scoring: submits answers
Exam/questions/views.py - Exam attempt and scoring → Exam setup: loads exam
Exam/questions/views.py - Exam attempt and scoring → Question papers: loads questions
Exam/questions/views.py - Exam attempt and scoring → Attempts and results: saves answers and score
Exam/questions/views.py - Student → Result viewing: views result
Exam/questions/views.py - Result viewing → Attempts and results: reads score
Exam/questions/views.py - Timer and focus behavior → Exam attempt and scoring: submits on timeout
Exam/questions/views.py - Timer and focus behavior → Professor alert API: reports focus changes
Exam/student/urls.py - Professor alert API → Email service: emails professor
Exam/student/api.py - Student → Preference settings: changes preferences
Exam/studentPreferences/views.py - Preference settings → Login email preference: reads and saves
Exam/studentPreferences/views.py - Student accounts → Login email preference: checks email setting
Exam/student/views.py - Login email preference → Email service: controls login email