How uzair401/fyp_project_repo works
Project Type and Purpose
• The EMS is a full-stack web application built with Django (Python) on the backend and HTML/CSS/JavaScript (with AdminLTE 3) on the frontend.
• Its purpose is to manage various examination-related activities for educational institutions (colleges/universities), including student records, academic data, exam scheduling, results processing, and user/role management.
Analyzing the File Structure
• Core Project Configuration:
• The ERMS_System directory holds the main Django configuration files (settings.py, urls.py, wsgi.py, asgi.py). This is the backbone for managing system-wide settings, middleware, and URL routing.
• Modular Application Architecture:
• There are several Django apps: “students”, “academics”, “records”, and “core”. Each encapsulates a specific domain:
▪ The “students” app deals with student records.
▪ The “academics” app manages subjects, courses, and related academic entities.
▪ The “records” app is focused on exam records, results, and transcript generation.
▪ The “core” app contains shared functionalities, middleware, custom authentication backends, and management commands (e.g., to setup groups and permissions).
• Templates Directory:
• Global templates and subdirectories for each module (students, academics, records, etc.) indicate a view layer that leverages AdminLTE components to ensure a consistent styling across the application.
• Configuration and Scripts:
• Files like manage.py, build.sh, and requirements.txt support development, deployment, and dependency management.
a. Main Components:
• Frontend/UI Layer:
• HTML/CSS/JavaScript with AdminLTE theme for rendering views.
• Separate template groups for each module (students, academics, records) with shared components from the “templates/adminlte” folder.
• Backend Application Layer:
• Django Project (ERMS_System) coordinating settings, URL routing, and server configurations.
• Modular apps: “students”, “academics”, “records”, and “core”, each with their models, views, forms, migrations, and signals.
• Database Layer:
• Additional Components:
• Middleware (found in the “core/middleware” folder) for managing session timeouts and other web requests processing.
• Custom management commands (in “core/management/commands”) for setting up roles/permissions.
b. Relationships and Interactions:
• The browser (frontend) communicates with the Django server, which routes requests to the relevant app (students, academics, records) based on the URL patterns defined in ERMS_System/urls.py.
• Views in each app process the requests, interact with the models, perform business logic, and then render responses using the appropriate templates.
• The “core” app’s components, such as custom decorators, backends, and middleware, are used across these apps to provide common functionalities (authentication, session management, context processing).
• Data flows bi-directionally between views and the PostgreSQL database via Django’s ORM.
c. Architectural Patterns and Principles:
• Modular and Reusable Code Organization: Each Django app focuses on a distinct domain, promoting decoupling.
• Role-Based Access Control: Clearly mark that the system uses authentication, permissions, and custom middleware to enforce user roles.
d. Relevant Technologies and Frameworks:
• Backend: Django framework (with its settings, URL routing, ORM, and middleware).
• Frontend: HTML/CSS/JavaScript along with AdminLTE 3 for the UI.
• Database: PostgreSQL.
• Others: Python scripts (build.sh, management commands) and Django’s migration system.
Final Remarks
• Details such as the inclusion of authentication (user management via roles) and the interactivity between modules through shared templates and middleware.