Skip to content

Latest commit

Β 

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hostello Logo

HOSTELLO

Automated Smart Hostel Management System using Django

Live Demo

Python Django SQLite HTML5 CSS3 JavaScript Bootstrap

HOSTELLO is a comprehensive, automated smart hostel management system designed to streamline and digitize daily hostel operations. By minimizing manual paperwork and maximizing efficiency, it provides a seamless experience for administrators and students alikeβ€”handling attendance, absence alerts, room allocation, and fee management in one secure platform.


πŸŽ₯ Project Working Demo

Hostello_Project_Working_Demo2.mp4
β–Ά HOSTELLO - Complete Project Walkthrough (Click Play to watch)

πŸ“‹ Table of Contents


🌟 Project Overview

HOSTELLO tackles the chaotic administration of student accommodations by moving all critical operationsβ€”from daily room/mess attendance to grievance reportingβ€”onto a centralized digital platform. The inclusion of automated guardian notifications ensures safety and accountability are maintained seamlessly.


✨ Key Features

πŸ‘¨β€πŸ’Ό Admin Features

  • Dashboard Analytics: Visual overview of total students, available rooms, fee collections, and recent activities.
  • Room Assignment & Management: Efficient allocation and tracking of hostel rooms. Admins can create rooms, set capacities, and assign students based on preferences.
  • Smart Attendance System: Daily tracking of student presence in rooms and the mess.
  • Automated Guardian Alerts: Automatically sends email alerts to parents/guardians when a student is absent beyond warning or critical thresholds.
  • Fee Management: Transparent tracking of hostel and mess fees. Admins can generate fee invoices and track payment statuses.
  • Notices Broadcasting: Create and publish digital announcements that instantly reflect on the student dashboard.
  • Request Management: Handle student complaints, maintenance requests, and leave applications efficiently.
  • Premium Admin Interface: Integrated with Jazzmin for a beautiful, responsive, and highly customizable administration panel.

πŸŽ“ Student Features

  • Student Dashboard: Personalized portal displaying room details, attendance records, and pending dues.
  • Notice Board: Real-time access to important announcements and hostel notices.
  • Fee Portal: View detailed fee breakdowns and track payment history securely.
  • Requests & Complaints: Submit and track the status of maintenance requests, leave applications, or general complaints directly from the portal.

πŸ—οΈ System Architecture

    +-------------------+           HTTP/JSON            +-----------------------+
    |                   |  <==========================>  |                       |
    |  Frontend Web UI  |                                |   Django Web Server   |
    |  (HTML/CSS/JS)    |  <-------------------------->  |   (Views/URLs/APIs)   |
    |                   |           Templates            |                       |
    +-------------------+                                +-----------+-----------+
                                                                     |
                                                                     | ORM
                                                                     v
    +-------------------+                                +-----------+-----------+
    |                   |                                |                       |
    |   External APIs   |  <==========================>  |     Django Models     |
    | (Stripe, SMTP)    |      Payments & Emails         |    (Business Logic)   |
    |                   |                                |                       |
    +-------------------+                                +-----------+-----------+
                                                                     |
                                                                     | SQL
                                                                     v
                                                         +-----------+-----------+
                                                         |                       |
                                                         |    SQLite Database    |
                                                         |     (Data Storage)    |
                                                         |                       |
                                                         +-----------------------+

πŸ’» Tech Stack

🎨 Frontend

Technology Badge Description
HTML5 HTML5 Semantic structure for all dashboard views.
CSS3 CSS3 Premium styling and responsive layout designs.
JavaScript JavaScript Interactive DOM elements and asynchronous logic.
Bootstrap Bootstrap Clean and consistent UI component framework.

βš™οΈ Backend

Technology Badge Description
Python Python Core programming language (3.10+).
Django Django High-level web framework for rapid development.
Django REST DjangoREST Toolkit for building Web APIs.

πŸ—„οΈ Database, Tools & Deployment

Technology Badge Description
SQLite SQLite Lightweight, robust local data storage.
Jazzmin Jazzmin Premium customized admin panel interface.
PythonAnywhere PythonAnywhere Live cloud server hosting & deployment.
Git & GitHub GitHub Version control and remote source code management.

πŸ“ Project Structure

HOSTELLO/
β”œβ”€β”€ hostello_backend/
β”‚   β”œβ”€β”€ accounts/             # Custom user models & auth logic
β”‚   β”œβ”€β”€ attendance/           # Room and Mess attendance tracking
β”‚   β”œβ”€β”€ fees/                 # Payments and fee management
β”‚   β”œβ”€β”€ hostello_backend/     # Main project settings & routing
β”‚   β”‚   β”œβ”€β”€ settings.py
β”‚   β”‚   └── urls.py
β”‚   β”œβ”€β”€ notices/              # Notice board broadcasting
β”‚   β”œβ”€β”€ media/              
β”‚   β”œβ”€β”€ requests/             # Student complaints/leave ticketing
β”‚   β”œβ”€β”€ students/             # Student profiles & room allocation
β”‚   β”œβ”€β”€ static/               # CSS, JS, and Images
β”‚   β”œβ”€β”€ templates/            # HTML Django templates
β”‚   β”œβ”€β”€ manage.py
β”‚   └── requirements.txt
β”œβ”€β”€ .env                      # Environment variables (git-ignored)
β”œβ”€β”€ .gitignore
β”œβ”€β”€ README.md
β”œβ”€β”€ run_backend.bat           # Startup script
└── run_frontend.bat          # Startup script

πŸ—„οΈ Database Schema

Model Name Purpose Key Relationships
User Custom authentication model (Admin/Warden). Base model.
Student Stores student details, guardian info, room info. O2O with User, FK to Room.
RoomAttendance Daily presence/absence tracking in rooms. FK to Student.
MessAttendance Daily presence/absence tracking in the mess. FK to Student.
Fee Logs fee types, amounts, and payment status. FK to Student.
StudentRequest Stores complaints, leave apps, and status. FK to Student.
Notice Global announcements for the dashboard. Broadcast model.

πŸ“Έ Application Screens

🌐 Public Portal & Essential Info

Landing Page
Modern & Responsive Landing Page

About Hostels
Hostel Blocks & Capacity
Room Types
3D Room Previews
Facilities
Student Living Benefits
Food Menu
Weekly Mess Menu
Amenities
Hostel Amenities & Contact Info

πŸ” Authentication & Onboarding

Registration
Secure Registration
Login
Student Login

πŸŽ“ Student Dashboard & Attendance

Student Dashboard
Comprehensive Student Profile
Attendance Records
Real-time Attendance Tracking

πŸ’³ Fee Management & Payments

Fee Management
Dynamic Fee Calculation
Payment Success
Automated Receipts

πŸ“ Requests, Notices & Info

Requests List
Leave & Complaint Status
Request Form
Submission Modal
Notifications
Warden Notices
Hostel Info
Policies & Contacts

πŸ›‘οΈ Admin & Warden Control Panel

Admin Login
Secure Warden Portal Login
Admin Dashboard
Centralized Admin Dashboard
Warden Profiles
Managing Hostel Wardens
Room Management
Managing Room Availability & Types
Student Directory
Warden's View of Student Records
Attendance Management
Bulk Attendance & Detailed Statistics
Request Management
Processing Leave & Complaint Requests
Fee Calculation
Dynamic Fee Engine: Hostel + Mess
Notice Management
Broadcasting Warden Notices to Students

πŸš€ Running the Application

1. Clone the Repository

git clone https://github.com/Hashmil-Muhammed/HOSTELLO_Automated_Smart_Hostel_Management_System_using_Django.git
cd HOSTELLO_Automated_Smart_Hostel_Management_System_using_Django

2. Set Up Virtual Environment

python -m venv hostello_env
# Windows:
hostello_env\Scripts\activate
# macOS/Linux:
source hostello_env/bin/activate

3. Install Dependencies

cd hostello_backend
pip install -r requirements.txt

4. Configure Environment Variables

Create a .env file in the hostello_backend/hostello_backend/ directory:

SECRET_KEY=your-secure-django-secret-key-here
DEBUG=True

# Email Configuration
EMAIL_HOST_USER=your-email@gmail.com
EMAIL_HOST_PASSWORD=your-app-password

# Stripe API Keys (Optional)
STRIPE_PUBLISHABLE_KEY=your-stripe-publishable-key
STRIPE_SECRET_KEY=your-stripe-secret-key
STRIPE_WEBHOOK_SECRET=your-stripe-webhook-secret

5. Run Migrations & Create Superuser

python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser

6. Start the Server

python manage.py runserver

Access the frontend at http://127.0.0.1:8000/ and the admin panel at http://127.0.0.1:8000/admin/


πŸ”’ Security

  • All sensitive credentials (such as Secret Keys and Email Passwords) are stored securely using environment variables (.env).
  • Cross-Origin Resource Sharing (CORS) is strictly configured.
  • Protected by Django's native CSRF & XSS prevention layers.
  • Password hashing and secure authentication practices are enforced natively by Django.

πŸ“œ License

This project is licensed under the MIT License.


Built with πŸ’» and β˜• for seamless hostel management.

About

A comprehensive Digital Hostel Management System built with Django, HTML, CSS, and JS. Automates student life-cycle management including room assignments, real-time attendance tracking, and fee monitoring with automated guardian alerts to ensure efficiency and transparency in hostel operations.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages