DNB Pay System is a robust, secure, and scalable web application built with Django and MySQL, designed to modernize attendance and payroll workflows for Sector 9 Hospital, BSP.
It replaces legacy systems with a user-friendly, role-based platform that automates HR processes, ensures data integrity, and supports efficient payroll management.
- Role-Based Access Control
Secure authentication for DNB, CSR, Contractual, Finance, and Super Admin users. - Dynamic Dashboards
Personalized dashboards with real-time stats and navigation for each role. - Employee Master Management
Add, edit, and view employee details with category-specific logic. - Attendance Automation
Quick entry, editing, and auto-calculation of absents based on month and leave types. - Payroll Processing
Automated salary computation and adjustments from attendance data. - Comprehensive Reporting
Built-in reports and checklists for compliance and audits. - Modern UI
Responsive, clean Bootstrap interface with intuitive forms and tables. - Security
Strong authentication, session management, and restricted access to sensitive operations.
| Layer | Technology |
|---|---|
| Backend | Django (Python 3.x) |
| Database | MySQL 8.x (or Oracle 19c) |
| Frontend | HTML5, Bootstrap, JS |
| ORM/Drivers | Django ORM, PyMySQL |
| Utilities | python-decouple, Pillow, crispy-forms, cryptography |
- Secure login for all user roles.
- Session management and password security.
- Role-based dashboard and navigation.
- Add/edit/view employee records.
- Filter by category (DNB, CSR, Contractual).
- Data validation and integrity checks.
- Enter and edit monthly attendance.
- Auto-calculate absents based on the month (supports leap years).
- Validation: sum of all days matches days in month.
- Role-based edit permissions.
- Automated stipend and adjustment calculations.
- Tax and deduction handling.
- Payroll reports for finance/admin.
- Downloadable reports (CSV, PDF).
- Audit logs and change tracking.
- Checklist for compliance.
- Python 3.8+
- MySQL 8.x (or Oracle 19c, if using Oracle backend)
- Git (optional)
- Visual Studio Code or any IDE
git clone https://github.com/yourusername/dnb_pay_system.git
cd dnb_pay_systempython -m venv venv
# On Windows PowerShell:
.\venv\Scripts\Activate.ps1
# On Linux/macOS:
source venv/bin/activatepip install -r requirements.txt- Create a MySQL database (e.g.,
mydb) and user (bspadmin/bsp123). - Grant privileges:
CREATE DATABASE mydb CHARACTER SET utf8mb4; CREATE USER 'bspadmin'@'localhost' IDENTIFIED BY 'bsp123'; GRANT ALL PRIVILEGES ON mydb.* TO 'bspadmin'@'localhost'; FLUSH PRIVILEGES;
- Update
settings.py:DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mydb', 'USER': 'bspadmin', 'PASSWORD': 'bsp123', 'HOST': 'localhost', 'PORT': '3306', } }
python manage.py migratepython manage.py createsuperuserpython manage.py runserverVisit http://127.0.0.1:8000/ in your browser.
| Role | Username | Password |
|---|---|---|
| Super | admin_dnb4 | sprint456 |
| (Or create your own using createsuperuser) |
- Piyush Kumar Tiwari :- https://github.com/stealthinator45
- Migrated a legacy system to a modern web platform.
- Implemented real-world security and authentication.
- Automated complex HR workflows and payroll calculations.
- Enhanced data integrity and reporting for compliance.
This project was developed as part of a Vocational Training Program at Bhilai Steel Plant (BSP), under the mentorship and guidance of the C&IT Department. All work was carried out exclusively for educational and internal demonstration purposes.
Ownership of project objectives, data, and direction remains with BSP. This repository serves as a non-commercial academic showcase and is not intended for public or production deployment.
Please do not reuse or distribute this project for commercial or sensitive applications without prior written permission from the respective authorities at BSP.
My linkedin :- https://www.linkedin.com/in/piyush-kumar-tiwari-a6a800256/ My mail :- tpiyush2626@gmail.com

























