Hospital Management System Python
The Hospital Management System Python and Django is a web-based application designed to manage important hospital activities digitally. The project provides a centralized platform where hospital operations such as patient registration, appointment scheduling, doctor management, patient management, and billing can be handled through a single system.
This Hospital Management System Project in Python Django is developed using Python, HTML, CSS, and Django. The project uses SQLite3 as its database and follows Django’s MVT architecture for organizing the web application.
Hospital Management System in Python Django
The Hospital Management System provides a digital environment for managing hospital-related activities. The main purpose of the project is to centralize different hospital operations into one web-based application.
Hospital activities such as patient admission, doctor management, appointment scheduling, and billing can be managed through the system. By keeping these activities within one application, the system provides an organized approach to hospital record management.
Project Overview
| Details | Description |
|---|---|
| Project Name | Hospital Management System |
| Languages Used | Python, HTML, CSS, Django |
| Database | SQLite3 |
| Type | Web Application |
Admin Features
- Admin Signup and Login
- Manage Doctors: Approve, reject, and delete applications.
- Manage Patients: Approve/reject admission requests and discharge patients.
- Manage Appointments: Book, approve, and reject appointments.
- Generate and download PDF invoices.
Doctor Features
- Apply for a Job (Admin approval required).
- View Assigned Patients and their details.
- View Discharged Patients.
- Manage Appointments and delete completed appointments.
Patient Features
- Account Creation and Login (Admin approval required).
- View Assigned Doctor Details.
- Book Doctor Appointments.
- Check Appointment Status.
- View and Download PDF Invoices.
Hospital Management System Usage
- Admin: Manages doctors, patients, appointments, admissions, discharges, and billing.
- Doctor: Applies for a job, views assigned and discharged patients, and manages appointments.
- Patient: Creates an account, views doctor details, books appointments, checks appointment status, and downloads invoices.
Invoice Generation
The Admin can generate PDF invoices after patient discharge, including medicine costs, room charges, doctor fees, and other expenses.
Appointment Management
Patients request appointments, Admin approves or rejects them, and Doctors manage their assigned appointments.
Patient Management
Admin reviews admission requests, assigns doctors, approves or rejects patients, and manages patient discharge.
Technologies Used
The Hospital Management System is developed using the following technologies:
- Python: Used as the main programming language.
- Django: Used as the web development framework.
- HTML: Used for creating the structure of the web pages.
- CSS: Used for styling and designing the interface.
- SQLite3: Used as the project’s database.
The project uses Django’s MVT architecture to organize the application and provides functionality for authentication, CRUD operations, database management, and PDF generation.
How to Run Hospital Management System in Python Django
- Install Python: Install Python 3.7.6 and enable Add Python to PATH.
- Install VS Code: Install VS Code and its Python extension.
- Open Project: Open the terminal and run:
cd "Hospital Management System" pip install -r requirements.txt - Apply Migrations:
python manage.py makemigrations python manage.py migrate - Create Admin:
python manage.py createsuperuser - Run Project:
python manage.py runserverOpen the local server URL in your browser.
Email Setup (Optional): Update email credentials in hospitalmanagement/settings.py to enable the contact page.
How to Download
The complete package is available so you can run, study, and submit it with confidence. It includes:
Screenshot:-






Important Notes
- Make sure that at least one doctor is added before admitting patients.
- Update passwords when modifying doctor or patient profiles.
- For better security, admin signup can be disabled and the
createsuperusercommand can be used to create administrator accounts.
Hospital Management System Source Code
If you are looking for the Hospital Management System Using Python & Django with Source Code, the complete project source code is available along with the setup information.
The project provides the complete files required to study and run the application, including its Django structure, database configuration, user roles, hospital management features, appointment functionality, and PDF invoice generation.
The project can be useful for your portfolio, college submission, or learning.
Conclusion
The Hospital Management System Using Python and Django provides a centralized web-based platform for managing hospital activities. The system is organized around three primary roles: Admin, Doctor, and Patient.
The Admin can manage doctors, patients, appointments, and invoices. Doctors can apply for jobs, view assigned patients, access discharged patient information, and manage appointments. Patients can create accounts, view doctor details, request appointments, check appointment status, and download PDF invoices after discharge.
The project uses Python, Django, HTML, CSS, and SQLite3. It also demonstrates authentication, CRUD operations, database migrations, role-based functionality, appointment scheduling, patient management, and PDF invoice generation.
With its multi-role structure and practical hospital-related functionality, the project provides students with a useful example of building a complete Django web application.