├── Emp.mp4 ├── README.md ├── db.sqlite3 ├── emp ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-310.pyc │ ├── admin.cpython-310.pyc │ ├── apps.cpython-310.pyc │ ├── models.cpython-310.pyc │ ├── urls.cpython-310.pyc │ └── views.cpython-310.pyc ├── admin.py ├── apps.py ├── migrations │ ├── 0001_initial.py │ ├── __init__.py │ └── __pycache__ │ │ ├── 0001_initial.cpython-310.pyc │ │ └── __init__.cpython-310.pyc ├── models.py ├── tests.py ├── urls.py └── views.py ├── manage.py ├── myapp ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-310.pyc │ ├── settings.cpython-310.pyc │ ├── urls.cpython-310.pyc │ ├── views.cpython-310.pyc │ └── wsgi.cpython-310.pyc ├── asgi.py ├── settings.py ├── urls.py ├── views.py └── wsgi.py ├── requirements.txt └── templates └── emp ├── add_emp.html ├── home.html ├── navbar.html └── update_emp.html /Emp.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/Emp.mp4 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Employee Management System 3 | 4 | An Employee Management System in Django keeps track of all of the employee’s information and data. We’ve created all of the employee's and company crud (create, read, update, and delete) operations. This is a role-based module in which the admin can perform any operation on the data. 5 | 6 | ![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54) ![Django](https://img.shields.io/badge/django-%23092E20.svg?style=for-the-badge&logo=django&logoColor=white) ![Bootstrap](https://img.shields.io/badge/bootstrap-%23563D7C.svg?style=for-the-badge&logo=bootstrap&logoColor=white) ![MySQL](https://img.shields.io/badge/mysql-%2300f.svg?style=for-the-badge&logo=mysql&logoColor=white) 7 | 8 | ## Features 9 | 10 | • Add Employee - The admin can add the employee in this software. 11 | 12 | • View Employee Details - The admin can view the list of all employee details. 13 | 14 | • Update Employee Details - The admin can edit the employee details and information. 15 | 16 | • Delete Employee - The admin can remove the employee from the database. 17 | 18 | > This Application was created using Python, Django, HTML/CSS, and Bootstrap. 19 | 20 | ## Sample video of this Project 21 | 22 | Employee Management System - 23 | 24 | https://user-images.githubusercontent.com/95544839/215315801-f1f4bbfb-53c2-4e5a-8090-844e4f572b46.mp4 25 | 26 | ## Installation 27 | 28 | This requires [Python](https://www.python.org/) v3.8+ and [Django](https://www.djangoproject.com/) v4.0.4+ to run. 29 | 30 | ```bash 31 | pip install -r requirements.txt 32 | ``` 33 | 34 | ### Add your database name (change settings.py file) 35 | 36 | ```bash 37 | DATABASES = { 38 | 'default': { 39 | 'ENGINE': 'django.db.backends.mysql', 40 | # 'NAME': BASE_DIR / 'db.sqlite3', 41 | 'NAME': 'newemp', # add you database name (schema name eg: newemp) 42 | 'USER': 'root', 43 | 'PASSWORD': 'root', 44 | 'HOST': 'localhost', 45 | 'PORT': '3306' 46 | } 47 | } 48 | ``` 49 | 50 | ### Update your database (By Applying migrations) 51 | 52 | ```bash 53 | python manage.py migrate 54 | ``` 55 | 56 | ### Install the dependencies and start the server. 57 | 58 | ```bash 59 | python manage.py runserver 60 | ``` 61 | -------------------------------------------------------------------------------- /db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/db.sqlite3 -------------------------------------------------------------------------------- /emp/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/emp/__init__.py -------------------------------------------------------------------------------- /emp/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/emp/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /emp/__pycache__/admin.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/emp/__pycache__/admin.cpython-310.pyc -------------------------------------------------------------------------------- /emp/__pycache__/apps.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/emp/__pycache__/apps.cpython-310.pyc -------------------------------------------------------------------------------- /emp/__pycache__/models.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/emp/__pycache__/models.cpython-310.pyc -------------------------------------------------------------------------------- /emp/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/emp/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /emp/__pycache__/views.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/emp/__pycache__/views.cpython-310.pyc -------------------------------------------------------------------------------- /emp/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /emp/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class EmpConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'emp' 7 | -------------------------------------------------------------------------------- /emp/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 4.0.4 on 2022-11-02 11:07 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | initial = True 9 | 10 | dependencies = [ 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='Emp', 16 | fields=[ 17 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 18 | ('name', models.CharField(max_length=200)), 19 | ('emp_id', models.CharField(max_length=200)), 20 | ('phone', models.CharField(max_length=10)), 21 | ('address', models.CharField(max_length=150)), 22 | ('working', models.BooleanField(default=True)), 23 | ('department', models.CharField(max_length=200)), 24 | ], 25 | ), 26 | ] 27 | -------------------------------------------------------------------------------- /emp/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/emp/migrations/__init__.py -------------------------------------------------------------------------------- /emp/migrations/__pycache__/0001_initial.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/emp/migrations/__pycache__/0001_initial.cpython-310.pyc -------------------------------------------------------------------------------- /emp/migrations/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/emp/migrations/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /emp/models.py: -------------------------------------------------------------------------------- 1 | from email.policy import default 2 | from unittest.util import _MAX_LENGTH 3 | from django.db import models 4 | 5 | # Create your models here. 6 | class Emp(models.Model): 7 | name=models.CharField(max_length=200) 8 | emp_id=models.CharField(max_length=200) 9 | phone=models.CharField(max_length=10) 10 | address=models.CharField(max_length=150) 11 | working=models.BooleanField(default=True) 12 | department=models.CharField(max_length=200) 13 | 14 | def __str__(self): 15 | return self.name -------------------------------------------------------------------------------- /emp/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /emp/urls.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from django.urls import path,include 3 | from .views import * 4 | 5 | urlpatterns = [ 6 | path("home/",emp_home), 7 | path("add-emp/",add_emp), 8 | path("delete-emp/",delete_emp), 9 | path("update-emp/",update_emp), 10 | path("do-update-emp/",do_update_emp), 11 | ] 12 | -------------------------------------------------------------------------------- /emp/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import redirect, render 2 | from django.http import HttpResponse 3 | from .models import Emp 4 | 5 | 6 | def emp_home(request): 7 | emps=Emp.objects.all() 8 | return render(request,"emp/home.html",{'emps':emps}) 9 | 10 | 11 | def add_emp(request): 12 | if request.method=="POST": 13 | emp_name=request.POST.get("emp_name") 14 | emp_id=request.POST.get("emp_id") 15 | emp_phone=request.POST.get("emp_phone") 16 | emp_address=request.POST.get("emp_address") 17 | emp_working=request.POST.get("emp_working") 18 | emp_department=request.POST.get("emp_department") 19 | e=Emp() 20 | e.name=emp_name 21 | e.emp_id=emp_id 22 | e.phone=emp_phone 23 | e.address=emp_address 24 | e.department=emp_department 25 | if emp_working is None: 26 | e.working=False 27 | else: 28 | e.working=True 29 | e.save() 30 | return redirect("/emp/home/") 31 | return render(request,"emp/add_emp.html",{}) 32 | 33 | def delete_emp(request,emp_id): 34 | emp=Emp.objects.get(pk=emp_id) 35 | emp.delete() 36 | return redirect("/emp/home/") 37 | 38 | def update_emp(request,emp_id): 39 | emp=Emp.objects.get(pk=emp_id) 40 | print("Yes Bhai") 41 | return render(request,"emp/update_emp.html",{ 42 | 'emp':emp 43 | }) 44 | 45 | def do_update_emp(request,emp_id): 46 | if request.method=="POST": 47 | emp_name=request.POST.get("emp_name") 48 | emp_id_temp=request.POST.get("emp_id") 49 | emp_phone=request.POST.get("emp_phone") 50 | emp_address=request.POST.get("emp_address") 51 | emp_working=request.POST.get("emp_working") 52 | emp_department=request.POST.get("emp_department") 53 | 54 | e=Emp.objects.get(pk=emp_id) 55 | 56 | e.name=emp_name 57 | e.emp_id=emp_id_temp 58 | e.phone=emp_phone 59 | e.address=emp_address 60 | e.department=emp_department 61 | if emp_working is None: 62 | e.working=False 63 | else: 64 | e.working=True 65 | e.save() 66 | return redirect("/emp/home/") 67 | -------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """Django's command-line utility for administrative tasks.""" 3 | import os 4 | import sys 5 | 6 | 7 | def main(): 8 | """Run administrative tasks.""" 9 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myapp.settings') 10 | try: 11 | from django.core.management import execute_from_command_line 12 | except ImportError as exc: 13 | raise ImportError( 14 | "Couldn't import Django. Are you sure it's installed and " 15 | "available on your PYTHONPATH environment variable? Did you " 16 | "forget to activate a virtual environment?" 17 | ) from exc 18 | execute_from_command_line(sys.argv) 19 | 20 | 21 | if __name__ == '__main__': 22 | main() 23 | -------------------------------------------------------------------------------- /myapp/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/myapp/__init__.py -------------------------------------------------------------------------------- /myapp/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/myapp/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /myapp/__pycache__/settings.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/myapp/__pycache__/settings.cpython-310.pyc -------------------------------------------------------------------------------- /myapp/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/myapp/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /myapp/__pycache__/views.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/myapp/__pycache__/views.cpython-310.pyc -------------------------------------------------------------------------------- /myapp/__pycache__/wsgi.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/myapp/__pycache__/wsgi.cpython-310.pyc -------------------------------------------------------------------------------- /myapp/asgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | ASGI config for myapp project. 3 | 4 | It exposes the ASGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.asgi import get_asgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myapp.settings') 15 | 16 | application = get_asgi_application() 17 | -------------------------------------------------------------------------------- /myapp/settings.py: -------------------------------------------------------------------------------- 1 | """ 2 | Django settings for myapp project. 3 | 4 | Generated by 'django-admin startproject' using Django 4.0.4. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.0/topics/settings/ 8 | 9 | For the full list of settings and their values, see 10 | https://docs.djangoproject.com/en/4.0/ref/settings/ 11 | """ 12 | import os 13 | from pathlib import Path 14 | from re import template 15 | 16 | # Build paths inside the project like this: BASE_DIR / 'subdir'. 17 | BASE_DIR = Path(__file__).resolve().parent.parent 18 | 19 | 20 | # Quick-start development settings - unsuitable for production 21 | # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ 22 | 23 | # SECURITY WARNING: keep the secret key used in production secret! 24 | SECRET_KEY = 'django-insecure-_u01hgzoj^iru*wtjdf0^r%5pq=mf21b5a*nq5^v8elt7ker!!' 25 | 26 | # SECURITY WARNING: don't run with debug turned on in production! 27 | DEBUG = True 28 | 29 | ALLOWED_HOSTS = [] 30 | 31 | 32 | # Application definition 33 | 34 | INSTALLED_APPS = [ 35 | 'django.contrib.admin', 36 | 'django.contrib.auth', 37 | 'django.contrib.contenttypes', 38 | 'django.contrib.sessions', 39 | 'django.contrib.messages', 40 | 'django.contrib.staticfiles', 41 | 'emp', 42 | ] 43 | 44 | MIDDLEWARE = [ 45 | 'django.middleware.security.SecurityMiddleware', 46 | 'django.contrib.sessions.middleware.SessionMiddleware', 47 | 'django.middleware.common.CommonMiddleware', 48 | 'django.middleware.csrf.CsrfViewMiddleware', 49 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 50 | 'django.contrib.messages.middleware.MessageMiddleware', 51 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', 52 | ] 53 | 54 | ROOT_URLCONF = 'myapp.urls' 55 | 56 | TEMPLATES = [ 57 | { 58 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 59 | 'DIRS': [os.path.join(BASE_DIR,"templates")], 60 | 'APP_DIRS': True, 61 | 'OPTIONS': { 62 | 'context_processors': [ 63 | 'django.template.context_processors.debug', 64 | 'django.template.context_processors.request', 65 | 'django.contrib.auth.context_processors.auth', 66 | 'django.contrib.messages.context_processors.messages', 67 | ], 68 | }, 69 | }, 70 | ] 71 | 72 | WSGI_APPLICATION = 'myapp.wsgi.application' 73 | 74 | 75 | # Database 76 | # https://docs.djangoproject.com/en/4.0/ref/settings/#databases 77 | 78 | # DATABASES = { 79 | # 'default': { 80 | # 'ENGINE': 'django.db.backends.sqlite3', 81 | # 'NAME': BASE_DIR / 'db.sqlite3', 82 | # } 83 | # } 84 | 85 | DATABASES = { 86 | 'default': { 87 | 'ENGINE': 'django.db.backends.mysql', 88 | # 'NAME': BASE_DIR / 'db.sqlite3', 89 | 'NAME': 'newemp', # add you database name (schema name eg: newemp) 90 | 'USER': 'root', 91 | 'PASSWORD': 'root', 92 | 'HOST': 'localhost', 93 | 'PORT': '3306' 94 | } 95 | } 96 | 97 | 98 | # Password validation 99 | # https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators 100 | 101 | AUTH_PASSWORD_VALIDATORS = [ 102 | { 103 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 104 | }, 105 | { 106 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', 107 | }, 108 | { 109 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', 110 | }, 111 | { 112 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', 113 | }, 114 | ] 115 | 116 | 117 | # Internationalization 118 | # https://docs.djangoproject.com/en/4.0/topics/i18n/ 119 | 120 | LANGUAGE_CODE = 'en-us' 121 | 122 | TIME_ZONE = 'UTC' 123 | 124 | USE_I18N = True 125 | 126 | USE_TZ = True 127 | 128 | 129 | # Static files (CSS, JavaScript, Images) 130 | # https://docs.djangoproject.com/en/4.0/howto/static-files/ 131 | 132 | STATIC_URL = 'static/' 133 | 134 | # Default primary key field type 135 | # https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field 136 | 137 | DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' 138 | 139 | # static 140 | STATICFILES_DIRS = os.path.join(BASE_DIR,'static'), 141 | STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles_build', 'static') 142 | 143 | -------------------------------------------------------------------------------- /myapp/urls.py: -------------------------------------------------------------------------------- 1 | """myapp URL Configuration 2 | 3 | The `urlpatterns` list routes URLs to views. For more information please see: 4 | https://docs.djangoproject.com/en/4.0/topics/http/urls/ 5 | Examples: 6 | Function views 7 | 1. Add an import: from my_app import views 8 | 2. Add a URL to urlpatterns: path('', views.home, name='home') 9 | Class-based views 10 | 1. Add an import: from other_app.views import Home 11 | 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 12 | Including another URLconf 13 | 1. Import the include() function: from django.urls import include, path 14 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 15 | """ 16 | from django.contrib import admin 17 | from django.urls import path, include 18 | from .views import * 19 | import emp.views as fun 20 | urlpatterns = [ 21 | path('admin/', admin.site.urls), 22 | path("",fun.emp_home), 23 | path("index/",fun.emp_home), 24 | # path("about/",about), 25 | # path("services/",services), 26 | path("emp/",include('emp.urls')) 27 | ] 28 | -------------------------------------------------------------------------------- /myapp/views.py: -------------------------------------------------------------------------------- 1 | from django.http import HttpResponse 2 | from django.shortcuts import render 3 | import datetime 4 | # def home(request): 5 | # isActive=True 6 | # if request.method=='POST': 7 | # check=request.POST.get("check") 8 | # print(check) 9 | # if check is None: isActive=False 10 | # else: isActive=True 11 | 12 | 13 | # date=datetime.datetime.now() 14 | # name="LearnCodeWithDurgesh" 15 | # list_of_programs=[ 16 | # 'WAP to check even or odd', 17 | # 'WAP to check prime number', 18 | # 'WAP to print all prime numbers from 1 to 100', 19 | # 'WAP to print pascals triangle' 20 | # ] 21 | # student={ 22 | # 'student_name':"Rahul", 23 | # 'student_college':"ZYZ", 24 | # 'student_city':'LUCKNOW' 25 | # } 26 | # return HttpResponse("

Hello this is index page

"+str(date)) 27 | # data={ 28 | # 'date':date, 29 | # 'isActive':isActive, 30 | # 'name':name, 31 | # 'list_of_programs':list_of_programs, 32 | # 'student_data':student 33 | # } 34 | # return render(request,"home.html",{}) 35 | # 36 | # def about(request): 37 | # return render(request,"about.html",{}) 38 | # 39 | # def services(request): 40 | # return render(request,"services.html",{}) 41 | -------------------------------------------------------------------------------- /myapp/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for myapp project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myapp.settings') 15 | 16 | application = get_wsgi_application() 17 | app = application 18 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextGenGk/Employee-Management-System-In-Python-Django/4e5a5aa107281a52b7a9ef2c346d3a7dd4a9fc8d/requirements.txt -------------------------------------------------------------------------------- /templates/emp/add_emp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Add Employee Details 7 | 8 | 9 | 10 | {% include 'emp/navbar.html' %} 11 |

Add New Employee

12 | 13 |
14 |
15 |
16 |
17 |
18 |
19 | {% csrf_token %} 20 | 21 | 22 |
23 | 24 | 31 |
32 | 33 | 34 |
35 | 36 | 43 |
44 | 45 | 46 |
47 | 48 | 55 |
56 | 57 | 58 |
59 | 60 | 67 |
68 | 69 | 70 |
71 | 72 | 73 |
74 | 75 | 76 |
77 | 78 | 84 |
85 | 86 | 87 |
88 | 91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /templates/emp/home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Employee Management System 7 | 10 | 11 | 12 | {% include 'emp/navbar.html' %} 13 |

Employees Table

14 |
15 |
16 |
17 |
18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | {% for e in emps %} 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 46 | 47 | {%endfor%} 48 | 49 |
S.NO.NAMEIDPHONEWORKING STATUSDEPARTMENTADDRESSACTION
{{forloop.counter}}{{e.name}}{{e.emp_id}}{{e.phone}}{{e.working}}{{e.department}}{{e.address}} 43 | Delete 44 | Update 45 |
50 |
51 |
52 |
53 | 54 |
55 |
56 | 57 | 60 | 61 | -------------------------------------------------------------------------------- /templates/emp/navbar.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/emp/update_emp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Update Employee Details 7 | 10 | 11 | 12 | {% include 'emp/navbar.html' %} 13 |

Update Employee

14 | 15 |
16 |
17 |
18 |
19 |
20 |
21 | {% csrf_token %} 22 | 23 | 24 |
25 | 26 | 34 |
35 | 36 | 37 |
38 | 39 | 47 |
48 | 49 | 50 |
51 | 52 | 60 |
61 | 62 | 63 |
64 | 65 | 71 |
72 |
73 | 74 | 75 |
76 | 77 | 78 |
79 | 80 | 86 |
87 |
88 | 91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 | 99 | 102 | 103 | --------------------------------------------------------------------------------