To run django management commands on the server, first ssh to the server, then sudo to web:

sudo -i -u web

Each site on the server will have a bash script in the opt folder. For hatherleigh_info the script is:


This script is on the path, will put you into the virtual environment and can be used in the same way as on your development machine e.g: shell



Only run this command if you have deployed a release within the last week!

To remove old deploy folders in the hatherleigh_net project:

sudo -i -u web
find /home/web/repo/project/hatherleigh_net/deploy -maxdepth 1 -type d -ctime +21 -exec rm -rf {} \;