A web-based Employee Management System built using the Django Framework and SQLite3 database.
It allows administrators to manage employee information, contact details, and departmental data efficiently from a user-friendly web interface.
- Add, edit, and delete employee records
- Manage department and contact details
- Admin panel for superuser access
- Modular apps for clean organization (
About,Contact, etc.) - Responsive frontend using Django templates and CSS
- Easy deployment using PythonAnywhere
Employee_Management/
βββ manage.py
βββ db.sqlite3
βββ Employee_Management/
β βββ __init__.py
β βββ settings.py
β βββ urls.py
β βββ wsgi.py
β βββ asgi.py
βββ About/
β βββ models.py
β βββ views.py
β βββ urls.py
β βββ admin.py
β βββ templates/
β βββ About.html
βββ Contact/
βββ models.py
βββ views.py
βββ urls.py
βββ admin.py
βββ templates/
βββ contact.html
git clone https://github.com/Venkatesh-6921/Employee_Management.git
cd Employee_Managementpython -m venv venv
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activatepip install -r requirements.txtpython manage.py makemigrations
python manage.py migratepython manage.py createsuperuserpython manage.py runserverNow open your browser and visit:
π http://127.0.0.1:8000/
Note: If You Want To Run this project locally you should do this First: Change the Staticfiles directory of settings.py
STATICFILES_DIRS = [ # os.path.join(BASE_DIR, 'static'), # only if you have project-level static ] to
STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), # only if you have project-level static ]
| Component | Technology |
|---|---|
| Framework | Django |
| Database | SQLite3 |
| Frontend | HTML, CSS (Django Templates) |
| Deployment | PythonAnywhere |
| Version Control | Git + GitHub |
Your requirements.txt file should contain:
Django>=5.0,<6.0
asgiref>=3.8,<4.0
sqlparse>=0.5,<1.0
tzdata>=2023.3,<2025.0Optional (add if needed):
Pillow>=10.0,<11.0
whitenoise>=6.6,<7.0
gunicorn>=21.2,<22.0
python-dotenv>=1.0,<2.0
dj-database-url>=2.2,<3.0- Log in to PythonAnywhere
- Go to the Files tab and upload your ZIP file
- Extract it in your home directory
In the PythonAnywhere Console, run:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txtIn Employee_Management/settings.py:
DEBUG = False
ALLOWED_HOSTS = ['yourusername.pythonanywhere.com']
# Static files configuration
STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / 'staticfiles'In the console:
python manage.py collectstaticThis command gathers all static assets (CSS, JS, images) into the staticfiles/ folder for deployment.
- Go to the Web tab β Click Add a new web app
- Choose Manual configuration β Select Python 3.x
- Set:
- Source code:
/home/yourusername/Employee_Management - WSGI file:
/home/yourusername/Employee_Management/Employee_Management/wsgi.py
- Source code:
Add the following mapping in the Static Files section:
URL: /static/
Directory: /home/yourusername/Employee_Management/staticfiles
Click Reload on the top right of the Web tab.
β
Done!
Your project is live at:
https://yourusername.pythonanywhere.com
** Maragada Venkateswara Reddy**
π Major Project β Django Web Development
π§ [maragadavekatesh@gmail.com]
This project is licensed under the MIT License - see the LICENSE file for details. β feel free to use and modify it for learning or development.
β¨ A complete Employee Management System built with Django β simple, elegant, and ready for deployment! β¨