Skip to content

Web application: Online directory of employees with API interface and admin panel based on Django and Django Rest Framework.

Notifications You must be signed in to change notification settings

ZorkoAnastasiya/Employee_Directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installing and running the project:


  1. Install packages from requirements.txt file

  2. Create a .env file in the superproject directory and add to it:

    • Set the environment variable DEBUG (True - for local launch)

    • Add the environment variable DATABASE_URL, indicating the url to the connected database

  3. Run the following commands from the superproject directory:

    • Apply migrations

      python manage.py migrate
      
    • Load test data into database

      python manage.py loaddata employees_data.json
      
    • Create a superuser for access to project administration

      python manage.py createsuperuser
      
    • Start the local server

      python manage.py runserver
      
    • Create a group "Managers" in the admin panel. Users added to this group have access to the API or users with the "superuser" status.

    • For a complete picture, enter the data in the Payments table.


About

Web application: Online directory of employees with API interface and admin panel based on Django and Django Rest Framework.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages