-
Install packages from requirements.txt file
-
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
-
-
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.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
ZorkoAnastasiya/Employee_Directory
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published