Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 2.19 KB

README.md

File metadata and controls

40 lines (31 loc) · 2.19 KB

Employee Directory - Django Project for CMPSC 487W

Introduction

This project is a simple Employee Directory developed using Django. It allows users to view a list of employees, add new employees, edit existing employee details, and search for employees by their name or ID.

Features

  • View Employees: Display a list of all employees with their details.
  • Add Employees: A form to add new employees to the directory. Employee IDs are generated automatically.
  • Edit Employees: Allows editing of an employee's details except for their unique ID.
  • Search: Users can search for employees using either their name or their unique ID.
  • Sort: Employees can be sorted by their name or ID.

Installation and Setup

  1. Clone the repository or download the project to your local machine.
  2. Navigate to the project's root directory in your terminal.
  3. Install dependencies -> `pip install django', 'pip install Pillow'
  4. Make sure to set up your database configurations in settings.py.
  5. Run python manage.py migrate to apply migrations.
  6. Start the development server with python manage.py runserver.
  7. Visit http://127.0.0.1:8000/ in your browser to access the application.

Usage

  • On the Employee Directory page, you'll see a list of all employees.
  • You can use the 'Add Employee' button to navigate to the form for adding a new employee.
  • Click on 'Edit' next to any employee to modify their details.
  • Click on 'Delete' next to any employee to remove them form the directory.
  • Use the search bar to find employees by name or ID.
  • Use the sort drop down to sort employees by name or ID.

Directory Structure

  • employee_dir: Main application directory containing models, views, templates, and static/media files.
  • project2: Main project configuration directory.
  • media: Directory for storing uploaded images.
  • static: Directory for static files like stylesheets, scripts, and other assets.

Disclaimer

All characters, images, and related content from "Silicon Valley" are trademarks of HBO and are used here for educational and demonstrative purposes only. This project is not affiliated with or endorsed by HBO, and the developer claims no ownership over any copyrighted content.