Teaching Time Tool¶
Tool for managing staff teaching time.
Installation¶
Clone the repo to the server:
cd /var/www/
git clone https://github.com/Southampton-RSG/physics-workload
Also copy the cut-down spreadsheets derived from the workload 2425.xlsx
spreadsheet into the same directory as the code.
They aren’t included in the repo as they contain personally identifiable data.
Running¶
The tool is run using docker compose
. Generally, it’s best to do this in a screen
session.
Start the server (and associated containers) using:
screen
sudo docker compose up
Initialising¶
If this is the first time the tool is being run, import the .csv
data:
sudo docker exec -it physics-workload-django /bin/bash
make clean
make data
make superuser
Then, log into the website to link your user account to the site.
The command make superuser
will then make the swm1r18
account site staff;
edit the script make_swm1r18_superuser.py
to change the account.
Updating¶
To update the tool, take the containers down, rebuild, and restart using:
screen -r
sudo docker compose down
sudo docker compose build --no-cache
sudo docker compose up
Extra¶
Note
This library was generated using copier from the Base Python Project Template repository.