Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

HR Platform

A comprehensive Human Resources management platform built with Django and Bootstrap 5.

Python Django Bootstrap

Features

Employee Management

  • Complete employee profiles with personal and employment information
  • Employee directory with search and filtering
  • Organization chart visualization
  • Document management (contracts, IDs, certificates)
  • Leave balance tracking

Leave & Time-Off

  • Leave request submission and approval workflow
  • Multiple leave types (Annual, Sick, Personal, Maternity/Paternity, Unpaid)
  • Leave calendar view
  • Automatic balance updates on approval
  • Manager notifications

Onboarding

  • Customizable onboarding templates
  • Task assignment and tracking
  • Progress monitoring
  • Department-specific workflows

Performance Reviews

  • Periodic performance evaluations
  • Rating system (1-5 scale)
  • Strengths and improvement areas
  • Review history tracking

Notifications & Announcements

  • Real-time notification system
  • Company-wide or department-specific announcements
  • Priority levels for announcements

Role-Based Access

  • HR Admin: Full access to all features
  • Manager: Department-level access, can approve leaves and create reviews
  • Employee: Personal profile access, can submit leave requests

Quick Start

Prerequisites

  • Python 3.10 or higher
  • pip (Python package manager)

Installation

  1. Clone or extract the project

    cd hr_platform
  2. Create a virtual environment (recommended)

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies

    pip install -r requirements.txt
  4. Run database migrations

    python manage.py makemigrations
    python manage.py migrate
  5. Create sample data (optional but recommended)

    python setup_data.py
  6. Start the development server

    python manage.py runserver
  7. Access the platform

Default Login Credentials

After running setup_data.py:

Username Password Role
admin admin123 HR Admin (Superuser)
sarah.johnson password123 HR Admin
john.smith password123 Manager (Engineering)
david.miller password123 Manager (Marketing)
emma.wilson password123 Employee

Project Structure

hr_platform/
├── hr_platform/          # Project settings
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py
├── core/                 # Core app (auth, dashboard, notifications)
│   ├── models.py         # User, Department, Notification
│   ├── views.py          # Dashboard, login, profile
│   ├── forms.py
│   └── urls.py
├── employees/            # Employee management app
│   ├── models.py         # Employee, Document, PerformanceReview
│   ├── views.py          # Employee CRUD, documents, reviews
│   ├── forms.py
│   └── urls.py
├── workflows/            # Workflow management app
│   ├── models.py         # LeaveRequest, Onboarding, Announcement
│   ├── views.py          # Leave, onboarding, announcements
│   ├── forms.py
│   └── urls.py
├── templates/            # HTML templates
│   ├── base.html
│   ├── core/
│   ├── employees/
│   └── workflows/
├── static/               # Static files (CSS, JS)
├── manage.py
├── setup_data.py         # Sample data script
└── requirements.txt

Key URLs

URL Description
/ Dashboard
/login/ Login page
/employees/ Employee directory
/employees/create/ Add new employee
/employees/<id>/ Employee detail
/employees/org-chart/ Organization chart
/workflows/leave/ Leave requests
/workflows/leave/create/ New leave request
/workflows/leave/calendar/ Leave calendar
/workflows/onboarding/ Onboarding tasks
/workflows/announcements/ Announcements
/notifications/ User notifications
/settings/ Platform settings

Customization

Adding New Departments

  1. Go to Django Admin (/admin/)
  2. Navigate to Core > Departments
  3. Add new department with name and code

Creating Onboarding Templates

  1. Go to Django Admin
  2. Navigate to Workflows > Onboarding Templates
  3. Create template and add task items

Modifying Leave Types

Edit workflows/models.py and update LEAVE_TYPE_CHOICES in the LeaveRequest model.

Tech Stack

  • Backend: Django 4.2+
  • Frontend: Bootstrap 5.3, Bootstrap Icons
  • Database: SQLite (default), can be configured for PostgreSQL/MySQL
  • Authentication: Django's built-in auth with custom User model

Development

Running Tests

python manage.py test

Creating a Superuser

python manage.py createsuperuser

Collecting Static Files (for production)

python manage.py collectstatic

Production Deployment

For production deployment:

  1. Set DEBUG = False in settings.py
  2. Configure ALLOWED_HOSTS
  3. Use a production database (PostgreSQL recommended)
  4. Set up proper secret key management
  5. Configure static file serving
  6. Use a production web server (Gunicorn, uWSGI)

License

This project is provided as-is for educational and demonstration purposes.

Support

For issues or questions, please refer to the Django documentation at https://docs.djangoproject.com/

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages