Skip to content

luckyjin7/python-django-workforce-wizard-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Team Member Management Application Documentation

Overview

This documentation provides the necessary steps to build, run, and test the Team Member Management Application. This application, built with Python Django, allows users to view, edit, add, and delete team members.

Prerequisites

  • Virtualenv (optional, but recommended for creating isolated Python environments)
  • Python (version 3.11.5)
  • Django (latest version)
  • Bootstrap: https://mdbootstrap.com/

Setting Up the Project

  1. Create and Activate Virtual Environment (Optional):
  • virtualenv venv
  • source venv/bin/activate # On Windows use venv\Scripts\activate
  1. Create project:
  • django-admin startproject team_management
  1. Create app:
  • python manage.py startapp team_management_app
  1. Register models in Database:
  • python manage.py makemigrations
  • python manage.py migrate
  • Create Superuser (Optional, but not applied in this project) python manage.py createsuperuser
  1. Run the Server:
  • python manage.py runserver

Accessing the Application

The application will be available at localhost: “http://127.0.0.1:8000/“ once you run the server.

Testing

  • Running Tests: python manage.py test
  • Writing Tests: Tests are located in unittest repo within the app.

Features

View Team Members:

  • List all team members
  • Reflect the number of team members
  • Note that if the team member is an admin, that is listed next to their name
  • Click a team member will show the Edit page
  • Click the plus button at the top will show the Add page

Note

This is list view:

image

Add Team Member:

  • Create a new team member entry: user enters a team member's first & last name, their phone number, and email
  • Choose the team member's role (it defaults to regular)
  • Hitting save adds the team member to the list and shows the List page

Note

This is Add action: add-user


Edit Team Member:

  • Update details of an existing team member: a new page form where the user can edit the details of the team member, including changing their role
  • Edit page appears when the user clicks a team member on the List page
  • Click save edits the team member information and shows the List page

Note

This is Edit action: edit-user


Delete Team Member:

  • In Edit page, remove a team member from the list and returns to the List page.
  • Delete permission depends on user's role (regular or admin)

Note

This is Delete action: delete-user

About

python + django + bootstrap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published