Hospital Management System in Python Django with Source Code

A fully functional project based on Hospital Management System which uses Python with Django Web Framework. Following Django project contains all the important features which can be in use for the first year, second year IT students for their college projects. It has a number of important features that will allow the users to manage the hospital’s records. This system as well as the web application’s concept is all clear, it’s the same as real-life scenarios and well-implemented on it. To download free hospital management system project in Python Django with source code files, please scroll down to the bottom of this post for the Download button.

About Hospital Management System Django Project

In particular, this hospital management system project in Python Django focuses mainly on dealing with hospital records. Also, the system displays all the available appointments with their respective details. In addition, the system allows managing patients’ records. Evidently, this project is divided into three categories: Patient, Doctor, and Admin Panel. In an overview of this web application, a patient can simply register and start using it. Initially, the action requires approval from the admin. In fact, he/she has to apply for it. However, each application requires action from the administrator which depends upon their approval or disapproval. By default, every patient needs to provide symptoms details. In addition, the customer can view their appointment and view hospital bills.

Doctor Panel

Likewise, a user can register himself/herself as a doctor. However, each registration requires action from the administrator which depends upon their approval or disapproval. Meanwhile, the user can view their respective patient details as well as their appointments. In fact, the doctor has the right to manage the appointments of their respective patients. Before stepping on to, almost every step requires approval from the admin before the doctor can view the records. With it, the doctor can only view their assigned patient’s record. Although the role of a doctor is a bit minor, it plays an important role in maintaining the flow within the system.

Admin Panel

On the other hand, an admin has full control of the system. An admin manages the proper flow of the system, unlike every other user. The user can have an overview of each data. The admin has the right to approve/decline the various requests. By the way, the admin can only book an appointment and discharge patients. Nevertheless, the admin can proceed with the billing side of patients’ bills. In order to add billings, an admin has to provide details such as room charges, doctor fees with medicine, and other charges. Having said that, the user can also view and download bills receipt. Above all, the user can list patient and doctor’s records too. Apart from these, the system lists out overall records to total applicants under various sections. In fact, these sections include approved, declined, and pending records. Furthermore, the admin can manage all appointments.

Last but not least, a clean and simple dashboard is presented with various color combinations for greater user experience while using this Hospital Management System Project in Python Django Framework. For its UI elements, a free open-source CSS framework; Bootstrap is on board with some Vanilla CSS too. Presenting a new Online Hospital System Project in Python Django which includes an admin panel with a patient and doctor panel that contains all the essential features to follow up, and a knowledgeable resource for learning purposes.

Available Features
  • Patient Panel
  • Doctor Panel
  • Admin Panel
  • Create Appointments
  • Manage Appointments
  • Generate Bills
  • Discharge Patients
  • Approve/Decline Request
  • Download Bills
Project Name:Hospital Management System Django
Language/s Used:Python with Django Web Framework
Database:SQLite
Type:Web Application
Developer:Sumit Kumar
Updates:0
Hospital Management System Django Project Overview

Instructions: How to Run?

  • After you finish downloading the project, unzip the project file and head over to the project root folder.
  • You can also create a Virtual Environment and Activate it.
  • Open your Terminal/Command Prompt on the project’s root folder.
  • Install the Requirements: pip install -r requirements.txt.
  • Then, make database migrations: python manage.py makemigrations
  • python manage.py migrate
  • And finally, after a successful migration run the application: python manage.py runserver
  • At last, open up your favorite web browser
  • Go to URL “http://127.0.0.1/[ PORT_NUMBER ]/“
  • For the Admin Panel credentials, you have to create one with a superuser.

And there you have it, a full setup of the Hospital Management System project in Django. At First, all you need to have is Python and Django installed on your local machine, whereas the remaining modules are under the requirements.txt file. Still, the versions may vary according to different project requirements, you can make use of it with python virtual environments. Also, Download Free Hospital Management System Project in Python Django Source Code. So, this Hospital Management System in Django is a fully functional project for all the beginner levels. Indeed, it helps to broaden vast knowledge into such Django web applications. In conclusion, this whole Django project with free source code is an absolute project and a meaningful way for the users to learn and explore more about it.

Free Download Hospital Management System Project in Python Django with Source Code:
Click the Download Button Below to Start Downloading

Note: Only for Educational Purpose

72 comments

  1. (myvenv) C:\Users\NIC\Desktop\Python Docs\Django Installation>python manage.py makemigrations
    System check identified some issues:

    WARNINGS:
    hospital.Appointment: (models.W042) Auto-created primary key used when not defining a primary key type, by default ‘django.db.models.AutoField’.
    HINT: Configure the DEFAULT_AUTO_FIELD setting or the HospitalConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. ‘django.db.models.BigAutoField’.
    hospital.Doctor: (models.W042) Auto-created primary key used when not defining a primary key type, by default ‘django.db.models.AutoField’.
    HINT: Configure the DEFAULT_AUTO_FIELD setting or the HospitalConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. ‘django.db.models.BigAutoField’.
    hospital.Patient: (models.W042) Auto-created primary key used when not defining a primary key type, by default ‘django.db.models.AutoField’.
    HINT: Configure the DEFAULT_AUTO_FIELD setting or the HospitalConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. ‘django.db.models.BigAutoField’.
    hospital.PatientDischargeDetails: (models.W042) Auto-created primary key used when not defining a primary key type, by default ‘django.db.models.AutoField’.
    HINT: Configure the DEFAULT_AUTO_FIELD setting or the HospitalConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. ‘django.db.models.BigAutoField’.
    No changes detected

    how to resolve

    Thank you
    Randheer Kumar

  2. Hello
    excelent project..
    I have a problem with contacts
    When I send information,,, I have error server 500
    this is my setting file
    for contact us give your gmail id and password
    #EMAIL_BACKEND =’django……..

  3. it’s worked find with me without any error, but when you open the project, any one can be admin by registering his information.
    how it can be work like that?

  4. Very interesting material, could you please summarise which technologies and methods did you use in this project, I would like to broke in pieces for better study/understanding.

  5. hey, i’m getting this error when i run ‘manage.py’:

    Watching for file changes with StatReloader
    Exception in thread django-main-thread:
    Traceback …………….
    ModuleNotFoundError: No module named ‘xhtml2pdf’

    could you please help me out?

      1. How can i solve error :
        ValueError at /afterlogin
        The view hospital.views.afterlogin_view didn’t return an HttpResponse object. It returned None instead.

  6. I try to login the patient account after register , but its bring me to the admin dashboard after login the patient page ….. how this can be solve?

  7. help please
    the error : The view afterlogin_view didn’t return an HttpResponse object. It returned None instead

  8. Yes I have been through the process very throughly but again it shows this error after login. After login and
    when I tried to run python manage.py makemigrations it shows no changes detected then again run migrate command but also this error prompted

  9. ValueError at /afterlogin
    The view hospital.views.afterlogin_view didn’t return an HttpResponse object. It returned None instead.
    Request Method: GET
    Request URL: /-127.0.0.1:8000/after login
    Django Version: 4.0.6…………………

  10. Excellent work.Thanq
    For all those who got errors first open projectinfo.txt file in the folder and follow the instructions
    type mannually in the terminal – pip install ……….. all the needed extensions which are present in the requirements.txt file

          1. login failed because ValueError at /afterlogin
            The view hospital.views.afterlogin_view didn’t return an HttpResponse object. It returned None instead.
            Request Method: GET
            Request URL: http://127.0.0.1:8000/afterlogin
            this error please help to solve this error please

          2. Don’t keep on posting the same error message again and again. We’ve asked you about the login details. What did you enter during login?

  11. error : could not find a version that satisfies the requirement xhtml12pdf (from versions :none)

    error : no matching distribution found for xhtml12pdf

Leave a Reply

Your email address will not be published. Required fields are marked *