Django Leave Management System With Source Code

A Django Leave Management System function, Student can send a leave requests application to any teacher. And Teacher can send leave application to any admin. Admin receives applications send by any teacher and can respond to them.

They can ‘Accept’ or ‘Reject’ the application. And also Teacher receives applications send by any student and can respond to them. They can ‘Accept’ or ‘Reject’ the application.

Read/visit also the other programming language used in leave management system.

This Leave Management System also includes a downloadable Project with Source Code for free, just find the downloadable source code below and click to start downloading.

To start creating a Leave Management System in python Django with source code, makes sure that you have PyCharm Professional IDE or any platform of django and its requirements Installed in your computer.

About ProjectProject Details
Project Name Leave Management System Project Django
Python version (Recommended)3.8 Version
Programming Language UsedPython Django Language
Developer Name itsourcecode.com
IDE Tool (Recommended)Sublime, Visual Studio, PyCharm
Project Type Web Application
DatabaseSQLite
Leave Management System Project Django Overview

Reminders

To perform this python django project make sure that you have knowledge in the following:

  • CSS
  • HTML
  • Javascript
  • Database Management

Features of this Leave Management System Project Django

1.) REGISTRATIONS FOR FOLLOWING USERS :

  • Student
  • Teacher
  • Admin

2.) SENDING LEAVE APPLICATION :

  • Student can send a leave application to any teacher.
  • Teacher can send leave application to any admin.

3.) RECEIVING LEAVE APPLICATION :

  • Admin receives applications send by any teacher and can respond to them.They can ‘Accept’ or ‘Reject’ the application.
  • Teacher receives applications send by any student and can respond to them.They can ‘Accept’ or ‘Reject’ the application.

4.) RECEIVING RESPONSE :

And the sender of the applications can be notified the response of the receiver.

In this case :

  • Teacher can receive the response from Admin of the application which he had send.
  • Student can receive the response from Teacher of the application which he had send.

The following method used:

  • classroom – In this method which is the main function of the system.
  • django_school – In this method which is the main method of the system.
  • template – in this method which is the template design of the system.

Steps on how to create a Leave Management System Project Django With Source Code

Time needed: 5 minutes

Leave Management System Project Django With Source Code

  • Step 1: Open file.

    First , open “pycharm professional” after that click “file” and click “new project“.
    leave management system open file

  • Step 2: Choose Django.

    Second, after click “new project“, choose “Django” and click.
    leave management system create django

  • Step 3: Select file location.

    Third, select a file location wherever you want.
    leave management system file location

  • Step 4: Create application name.

    Fourth, name your application.
    leave management system application name

  • Step 5: Click create.

    Fifth, finish creating project by clicking “create” button.
    leave management system create project

  • Step 6: Start of coding.

    you are free to copy the following codes below in the given modules and method required.

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 Leave Management System Project 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:

1.) python manage.py runserver

Step 3: Finally, open the browser and go to localhost:8000

Summary

The system is built fully in Django Framework in back-end and HTML, CSS in front-end. It has full-featured user interface with all the functionalities

This Article is the way to enhance and develop our skills and logic ideas which is important in practicing the python programming language which is most well known and most usable programming language in many company.

Inquiries

If you have any questions or suggestions about Django Leave Management System , please feel free to leave a comment below.

5 thoughts on “Django Leave Management System With Source Code”

  1. tanks is a good code!

    May you help me whit this error please ?

    3.1.5
    Exception Type: TypeError
    Exception Value:
    StudentSignUpForm() takes no arguments

    VIEWS.PY
    from django.shortcuts import render, HttpResponse
    from .models import Post
    #inicia perfiles
    from django.contrib.auth import login
    from django.shortcuts import redirect
    from django.views.generic import CreateView

    from blog.forms import StudentSignUpForm
    from blog.models import MyUser
    # Create your views here.

    html_base = “””
    SpsiQedu

    Home
    Acerca de

    “””

    def home(request):
    posts = Post.objects.all()
    return render(request, “blog/home.html”, {‘posts’: posts})

    def inicio(request):
    post = Post.objects.filter()
    return render(request, “blog/inicio.html”, {‘post’: post})

    def about(request):
    return render(request, “blog/about.html”)

    def registro(request):
    solicitoc = Post.objects.filter()
    #form = UserCreationForm()
    #if request.method == “POST”:
    #form = UserCreationForm(request.Post)
    #if form.is_valid():
    #instancia = form.save(commit=False)
    #instancia.save
    #return redirect(‘home’)
    #else:
    #return render(request, “blog/registro.html”, {‘solicitoc’: solicitoc})
    return render(request, “blog/registro.html”, {‘solicitoc’: solicitoc})

    def estudiante(request):
    return render(request, “blog/estudiante.html”)

    class StudentSignUpView(CreateView):
    model = MyUser
    form_class = StudentSignUpForm
    template_name = ‘blog/signup_form.html’

    def get_context_data(self, **kwargs):
    kwargs[‘user_type’] = ‘student’
    context = super().get_context_data(**kwargs)
    return context

    def form_valid(self, form):
    user = form.save()
    login(self.request, user)
    return redirect(‘studentsprofiles’)

  2. can you please solve the error “on_delete must be callable”
    error line is: File “C:\Users\CADD\PycharmProjects\Leave Management\venv\lib\site-packages\django\db\models\fields\related.py”, line 953, in __init__
    raise TypeError(“on_delete must be callable.”)

Leave a Comment