How prudhvi-1618/score-sphere works
Project Type & Purpose
• It is a full-stack web application built with Django.
• Its purpose is to aggregate, display, and allow downloading of student results (across semesters) by converting traditional PDFs and CSV data into a database-driven, user-friendly website.
• The application uses Pandas to import CSV data (sem1courses.csv, sem2courses.csv) into an SQLite database managed via Django models.
Major Components
a. Frontend:
• Templates (located in core/templates) including pages like main.html, nav.html, results.html, resultspdf.html, and error pages (notfound.html).
• Static files such as CSS and images (in the static directory).
• Client-side components (HTML/CSS/JavaScript) used for the user interface.
b. Backend:
• Django Application Code:
• The “core” directory contains the business logic: models.py (database models for Student, Semester, Result, etc. as described in the README), views.py, urls.py, admin.py, and forms.
• Custom management commands (within core/management/commands) that handle CSV imports (import_results.py, import_results1.py) to populate the database.
• Django Settings and URL Routing:
• The “edu” directory holds the Django project settings (settings.py), URL configuration (urls.py), and ASGI/WGSI entry points.
• Django’s built-in administrative interface leveraged via admin.py.
c. Database:
• SQLite database (by default with Django) used for storing all the student details, courses, semester data, results, and related entities.
d. External Dependencies:
• Pandas – integrated for CSV file processing.
• Django Framework – providing the overall MVC/MVT structure.
• Other underlying libraries (HTML/CSS/JS libraries if any) for rendering the UI.
e. Data Import/Processing:
• CSV files (sem1courses.csv, sem2courses.csv) provide course data that is imported into the database.
• Management commands act as an ETL (Extract, Transform, Load) process for results data.
Relationships and Interactions
• Users access the website via a browser. The client sends HTTP requests which are routed through the Django URL configuration (in both edu/urls.py and core/urls.py).
• The views in core/views.py process these requests, interacting with models (database) to retrieve student results.
• Templates render the data into HTML pages sent back to the client.
• The management commands (import_results.py and import_results1.py) are executed outside the request cycle to import CSV data into the database.
• There is an implicit interaction between the core components (models, views, and templates) following Django’s MVT pattern.
• Additionally, there is functionality for generating downloadable PDFs of results.
Architectural Patterns and Design Principles
• MVT (Model-View-Template) – as implemented by Django.
• Separation of Concerns – Frontend (Templates/Static), Business Logic (views, models, management commands), and Configuration (settings, URL routing).
• Use of management commands helps modularize data import processes.
Additional Details
• Detail the dependencies such as Django’s role in routing, rendering, and data modeling, along with Pandas’ role in managing CSV data.