A comprehensive Human Resources management platform built with Django and Bootstrap 5.
- 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 request submission and approval workflow
- Multiple leave types (Annual, Sick, Personal, Maternity/Paternity, Unpaid)
- Leave calendar view
- Automatic balance updates on approval
- Manager notifications
- Customizable onboarding templates
- Task assignment and tracking
- Progress monitoring
- Department-specific workflows
- Periodic performance evaluations
- Rating system (1-5 scale)
- Strengths and improvement areas
- Review history tracking
- Real-time notification system
- Company-wide or department-specific announcements
- Priority levels for announcements
- 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
- Python 3.10 or higher
- pip (Python package manager)
-
Clone or extract the project
cd hr_platform -
Create a virtual environment (recommended)
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Run database migrations
python manage.py makemigrations python manage.py migrate
-
Create sample data (optional but recommended)
python setup_data.py
-
Start the development server
python manage.py runserver
-
Access the platform
- Main application: http://localhost:8000
- Admin panel: http://localhost:8000/admin/
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 |
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
| 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 |
- Go to Django Admin (
/admin/) - Navigate to Core > Departments
- Add new department with name and code
- Go to Django Admin
- Navigate to Workflows > Onboarding Templates
- Create template and add task items
Edit workflows/models.py and update LEAVE_TYPE_CHOICES in the LeaveRequest model.
- 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
python manage.py testpython manage.py createsuperuserpython manage.py collectstaticFor production deployment:
- Set
DEBUG = Falsein settings.py - Configure
ALLOWED_HOSTS - Use a production database (PostgreSQL recommended)
- Set up proper secret key management
- Configure static file serving
- Use a production web server (Gunicorn, uWSGI)
This project is provided as-is for educational and demonstration purposes.
For issues or questions, please refer to the Django documentation at https://docs.djangoproject.com/