A simple yet powerful web portal for teachers to manage students — built using Python, Flask, HTML, CSS, and JavaScript
✅ Secure Login System (with password encryption)
✅ Dashboard showing student list
✅ Add / Edit / Delete students via a modal
✅ Same modal used for both Add and Edit
✅ Client-side input validation (marks must be 0–100)
✅ Session-based login with Logout
✅ Custom CSS (no frameworks)
teacher_portal_flask/ ├── app.py # Main Flask application ├── init_db.py # DB initialization script ├── portal.db # SQLite database (auto-generated) │ ├── templates/ │ ├── login.html # Login page │ └── home.html # Dashboard with student table + modal │ ├── static/ │ ├── script.js # JavaScript for modal & AJAX │ ├── styles.css # CSS styling for dashboard & modal │ └── login.css # CSS styling for login page │ └── README.md # This file
python -m venv env source env/bin/activate # On macOS/Linux env\Scripts\activate # On Windows
pip install -r requirements.txt
python init_db.py
python app.py