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 |
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
(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
are all other requirements installed successfully before running migrations?
I get a error from makemigrations section that is no module named ‘django.xhtml2pdf’. what should I do ?
hello what are username and password of admin panel
There’s none cause you’ve to create your own admin details!
when trying to run migrations it showing me this error
What are the error messages?
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……..
Regarding Contact Section, You have to configure the settings by providing your email and password in settings.py file
EMAIL_HOST_USER = ‘[email protected]’
EMAIL_HOST_PASSWORD = ‘your email password’
EMAIL_RECEIVING_USER = ‘[email protected]’
Now, Log into your Gmail account through the host email id and turn ON: https://myaccount.google.com/lesssecureapps
while creating superset I am not being able to set the password ,kindly help
superset??
after doing the migrations its saying no migrations detected
How do i remove “Copyright 2021—— sumit kumar”?
From the code
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?
This is just a simple project and not for live productions. So, no worries!
Many thanks for your reply
What is the Django admin User id and password sir.(DB)
You’ve to create your own using createsuperuser
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.
HTML CSS, Bootstrap, SQLite, Python, Django Framework
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?
Your issue is mentioned in the error “No module named ‘xhtml2pdf’”
Simple install xhtml2pdf library
hey, i’m getting this error when i run “ModuleNotFoundError: No module named ‘widget_tweaks'”
Install “widget_tweaks” module
How can i solve error :
ValueError at /afterlogin
The view hospital.views.afterlogin_view didn’t return an HttpResponse object. It returned None instead.
Same error here!
thers no such module named widget_tweaks, how do i resolve this?
install that module!
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?
Maybe you’ve the same info for both admin and patient
help please
the error : The view afterlogin_view didn’t return an HttpResponse object. It returned None instead
Did you go through the migration process?
yes but still same error
Can you please send me the Project Report of this.
Sorry, we don’t have it!
Manage.py migrate error module plz me in project
What kind of error?
sir xhtml2pdf is not installing
“pip install django-xhtml2pdf”
127.0.0.1:8080/afterlogin
how to fix this problem of ValueError at/afterlogin
Can you please walk me through the steps you’ve followed?
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
error such as?
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…………………
This one with Admin Login or doctor/patient?
i have solved that error but i need report for this project can i get report?
how to solve this error
thank you for this project and i need this project report
we don’t have it
ok,fine how many data base tables are in this project
i need to add a page for scan,xray and for prescription of the doctor for the patient
how to do ???
For that specific feature, you have to add a bunch of additional code lines and changes to the current project.
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
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
how to solve it
what about all the migration steps and everything?
all are done bt value error occurred after login how to solve it
and what about login details?
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
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?
if i login pagenot found after login error is occurred
You’ve created your own login credentials?
no
Then what did you entered in the login panel without even creating one..?
i didint do anything new.Downloded and run as mentioned in this.
Before running you’ve to create your own login credentials using superuser.
created my super user still showing the same error
How to do confirm password
confirm password for??
for doctor and patient registration
while creating a password, “Confirm Password” means you have to re-type your preferred password in order to set it!
how to set auto generate password(patient&doctor)
What do you mean by auto generate password??
bhai reply my query
modulenotfounderror: no module named ‘xhtml12pdf ‘
Check the instructions PROPERLY
everything is going fine but xhtml12pdf not installing
try installing it separately without mentioning its version.
error : could not find a version that satisfies the requirement xhtml12pdf (from versions :none)
error : no matching distribution found for xhtml12pdf
try installing it separately without mentioning its version.
patient is not able to register
cant choose branch
How long does it take you to build and complete such projects?
No module named ‘widget_tweaks’
You need to install that particular module
I am for couple of years Python developer and /afterlogin seems to be a bug, whereby you have to add after doing what you did, at http…. /logout, hit enter, and then you’re back.
(models.W042) Auto-created primary key used when not defining a primary key type, by default ‘django.db.models.AutoField’. ??? So typical for someone that doesn’t care about quality of work… What a helll is this now?
Thanks. but can I use this project with machine learning project that predict disease? I mean integrating with another machine learning project to display predicted result on patient panel and to get symptom input from patient
what database is you recommend to use this project
It uses SQLite
Although everything is the same I am getting the error:
in doctor_dashboard_view:
doctor=models.Doctor.objects.get(user_id=patient.assignedDoctorId)
saying
Doctor matching query does not exist.
It suggests that no doctor is found with the specified user_id. Please double-check that the user_id in the query corresponds to an existing doctor’s user_id.
sir after login into admin .
i am not able to logout please help me out
Any error messages?
logout click is not working
Any error messages?