Doctor Appointment System Project in Django with Source Code

Doctor Appointment System Project in Django with Source Code

This Doctor Appointment System Project in Django created based on python, Django, and MYSQL Database. The Doctor Appointment System is relatively simple to use; however, in order to schedule an appointment, the patient must first create an account. In order to process a prescription, the patient must fill out some required details and choose a doctor who best meets their needs.

A Doctor Appointment System has a qualifications and information of the doctors will be registered by the administrator. The doctor should keep track of all of his or her appointments that the patient has scheduled. The doctor can also see the patient’s details. The administrator oversees all aspects of management, including regular transactions, doctor assignments, and patient records tracking.

To start creating a Doctor Appointment System Project in Python Django, makes sure that you have PyCharm Professional IDE Installed in your computer.

Doctor Appointment System in Django...
Doctor Appointment System in Django with Source Code | Django Projects with Source Code

This Doctor Appointment System in Django Framework, Also includes a Download Source Code for free, just find the downloadable source code below and click download now.

About ProjectProject DetailsDefinition
Project Name Doctor Appointment System Project in DjangoThe Doctor Appointment System in Django is an easy project for beginners to learn how to build a web-based python Django project. We will provide you with the complete source code and database for the python project so that you can easily install it on your machine and learn how to program in Python Django.
Python version (Recommended)3.8 VersionPython 3.8 introduces some new syntax to the language, as well as a few small modifications to existing behavior and, most importantly, a slew of performance improvements, following in the footsteps of the previous 3.7 version.
Programming Language UsedPython Django LanguageDjango is a high-level Python web framework for building safe and maintainable websites quickly. Django is a web framework built by experienced developers that takes care of a lot of the heavy lifting so you can focus on developing your app instead of reinventing the wheel.
Developer Name itsourcecode.comFree projects containing source code in Java, PHP, Python, Django, VB.Net, Visual Basic, C, C++, C#, Javascript, and other languages are available on this website.
IDE Tool (Recommended)Sublime, Visual Studio, PyCharmSublime Text is a source code editor that is available for purchase. It comes with built-in support for a variety of programming and markup languages. Plugins, which are often community-built and maintained under free-software licenses, allow users to extend the functionality of the system. Sublime Text has a Python API to help with plugins.
Project Type Web ApplicationA web application, unlike computer-based software programs that operate locally on the device’s operating system, is application software that runs on a web server. The user uses a web browser with an active network connection to access web apps.
DatabaseSQLiteSQLite is a programming language that is used to create embedded software for devices such as televisions, cell phones, and cameras. It can handle HTTP requests with low to medium traffic. SQLite has the ability to compress files into smaller bundles with less metadata. SQLite is a temporary dataset that is used within an application to process data.
Doctor Appointment System Project in Django Overview

Admin Features of Doctor Appointment System Project in Django

  • Login Page The page where the system administrator enters their system credentials in order to gain access to the system’s administrative side.
  • Manage Appointment This is the page where an administrator can add, edit, update, and delete appointment.
  • Manage CustomerThis is the page where an administrator can add, edit, update, and delete customer information.
  • Doctor Management – This is the page where an administrator can add, edit, update, and delete doctor information.
  • Manage Moderator– This is the page where an administrator can add, edit, update, and delete moderator information.

Doctor Features of Doctor Appointment System Project in Django

  • Register Page– The page where doctor created their login credentials for the website.
  • Login Page – The page where the doctor enters their system credentials in order to gain access to the system’s doctor side.
  • Manage Account Details – The page where doctor can update their information.
  • View List of Appointments – The page where doctor can view the list of appointments.

Doctor Appointment System Project in Django Steps on How to Create a Project

Time needed: 5 minutes.

Here’s the step’s on how to create a Doctor Appointment System Project in Django with Source Code.

  • Step 1: Open file.

    First , open “pycharm professional” after that click “file” and click “new project“.
    Create new Project for Doctor Appointment System Project in Django with Source Code

  • Step 2: Choose Django.

    Next, after click “new project“, choose “Django” and click.
    choose django for Doctor Appointment System Project in Django with Source Code

  • Step 3: Select file location.

    Then, select a file location wherever you want.
    Create Location Name for Doctor Appointment System Project in Django with Source Code

  • Step 4: Create application name.

    After that, name your application.
    Create application Name for Doctor Appointment System Project in Django with Source Code

  • Step 5: Click create.

    Lastly, finish creating project by clicking “create” button.

  • Step 6: Start Coding.

    Finally, we will now start adding functionality to our Django Framework by adding some functional codes.

Functionality and Codes of the Doctor Appointment System Project in Django

  • Create template for the homepage in Doctor Appointment System Project in Django.

In this section, we will learn on how create a templates for the homepage. To start with, add the following code in your layout.html under the folder of appoint/templates/appoint.

{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block Title %}{% endblock %}</title>
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
    <link rel="stylesheet" href="{% static 'appoint/css/appoint.css' %}">
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:[email protected];400;500&display=swap" rel="stylesheet">
    <style> </style>
</head>
<body>
    <div class="page">
        <header class="header bg-primary">
            <a href="{% url 'index' %}"><img src="{% static 'appoint/img/doctor_appoint_logo_200x200.png' %}" alt="logo"></a>
            <nav class="header_nav">
                {% block HeaderTitle %}
                {% endblock %}
                <a href="{% url 'admin:index' %}" class="bg-primary">Admin panel</a>

            </nav>
            <nav class="header_nav_account">
                {% if user.is_authenticated %}
                    {% if user.is_customer %}
                        <a class="header_link bg-primary" href="{% url 'user_detail' user.pk %}">Profile</a>
                    {% elif user.is_doctor %}
                        <a class="header_link bg-primary" href="{% url 'doctor_dashboard' user.pk %}">Dashboard</a>
                        <a class="header_link bg-primary" href="{% url 'doctor_detail' user.pk %}">Profile</a>
                    {% elif user.is_moderator %}
                        <a class="header_link bg-primary" href="{% url 'moderator_dashboard' %}">Moderator dashboard</a>
                    {% endif %}
                    <a class="header_link bg-primary" href="{% url 'logout' %}">Logout</a>
                {% else %}
                    <a class="header_link bg-primary" href="{% url 'login' %}">Login</a>
                {% endif %}
            </nav>
        </header>

        <main class="BodyContent">
            {% block BodyContent %}
            {% endblock BodyContent %}
        </main>
    </div>
</body>
</html>

  • Create template for the doctor detail in Doctor Appointment System Project in Django.

In this section, we will learn on how create a templates for the doctor detail. To start with, add the following code in your doctor_detail.html under the folder of appoint/templates/appoint.

{% extends 'appoint/layout.html' %}

{% block Title %}{{ doctor.get_full_name }}{% endblock %}

{% block HeaderTitle %}
    <a href="{% url 'index' %}">To main</a>
{% endblock %}

{% block BodyContent %}
    <div class="doctor_detail">
        <h1>{{ doctor.get_full_name }}</h1>
        <h4>{{ doctor.specialization }}</h4>

        <div class="doctor_detail_info">
            {{ doctor.info }}
        </div>
    </div>

    <a href="{% url 'doctor_appoints' doctor.pk %}" class="btn btn-warning" role="button">Show appointments</a>
{% endblock %}

  • Create template for the user detail in Doctor Appointment System Project in Django.

In this section, we will learn on how create a templates for the user detail. To start with, add the following code in your user_detail.html under the folder of appoint/templates/appoint.

{% extends 'appoint/layout.html' %}

{% block Title %}{{ customer.pk }}{% endblock %}

{% block HeaderTitle %}
    <a href="{% url 'index' %}">To main</a>
{% endblock %}

{% block BodyContent %}
    <div class="user_detail">
        <h2>{{ customer.first_name }}</h2>
        <h2>{{ customer.last_name }}</h2><br>

        {% if appointment_list_past %}
            <h3>Past appointments:</h3>
            {% for appoint in appointment_list_past %}
                <h3>{{ appoint.date|date:"j N Y" }}, {{ appoint.start_time|time:"H:i" }} - {{ appoint.end_time|time:"H:i" }} : {{ appoint.doctor }} ({{ appoint.doctor.specialization }})</h3>
            {% endfor %}
        {% endif %}
        {% if appointment_list_present %}
            <h3>Today appointments:</h3>
            {% for appoint in appointment_list_present %}
                <h3>{{ appoint.date|date:"j N Y" }}, {{ appoint.start_time|time:"H:i" }} - {{ appoint.end_time|time:"H:i" }} : {{ appoint.doctor }} ({{ appoint.doctor.specialization }})</h3>
            {% endfor %}
        {% endif %}
        {% if appointment_list_future %}
            <h3>Future appointments:</h3>
            {% for appoint in appointment_list_future %}
                <h3>{{ appoint.date|date:"j N Y" }}, {{ appoint.start_time|time:"H:i" }} - {{ appoint.end_time|time:"H:i" }} : {{ appoint.doctor }} ({{ appoint.doctor.specialization }})</h3>
            {% endfor %}
        {% endif %}

    </div>
{% endblock %}

Downloadable Source Code Below.

Anyway, if you want to level up your programming knowledge, especially python, try this new article I’ve made for you Best Python Projects with source code for Beginners. But If you’re going to focus on web development using Django, you can download here from our list of Best Django Projects with source code based on real-world projects.

How To Run The Doctor Appointment System Project in Django?

  • Step 1: Extract/unzip the file
  • Step 2: Go inside the project folder, open cmd and type the following commands to install Django Framework and run the webserver:
  • pip install -r requirements.txt
  • python manage.py migrate
  • python manage.py runserver
  • Step 3: Finally, open the browser and go to http://127.0.0.1:8000/

Summary

In summary, this 2022 Doctor Appointment System Project in Django with Source Code can be useful to students or professional who wants to learn python programming language. This project can also be modified to fit your personal requirements. Hope this project will help you to improve your skills. Happy Coding!

Inquiries

If you have any questions or suggestions about Doctor Appointment System Project in Django with Source Code, please feel free to leave a comment below.

1 thought on “Doctor Appointment System Project in Django with Source Code”

Leave a Comment