This app stores the information of user and there work activities. we can store the data using custom management command. One API is provided to get all the user data and their respective activities list in the form of JSON.
- Python 3.6
- Django 3.1
- DRF 3.11.1
-
command: python manage.py populatedbdata --path "path of json file"
-
Json file should be formatted like shown below:
- User - Defines the details about user like real name and timezone
- Activity Periods - explains about the each activity of every user. It take two attributes one is "start time" and second is "end time". One more attributes exists which define the relation(Many to One) with User model.
-
this django app hosted on PythonAnywhere
-
The below API will give the list of user with their all activities
-
The output of this API will like this-